/* ========================================
   Cementerio de Mascotas - Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-dark: #1a4a2e;
    --green-mid: #2d7a4f;
    --green-light: #e8f2ec;
    --gold: #b8923f;
    --gold-light: #f5ecd8;
    --cream: #faf8f4;
    --white: #ffffff;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --border: #e0ddd7;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-lg: 16px;
    --max-w: 1200px;
    --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--alt { background: var(--white); }
.section--green { background: var(--green-dark); color: var(--white); }
.section--light { background: var(--green-light); }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 650px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Header --- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: var(--max-w);
    margin: 0 auto;
    height: 70px;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
}
.header__logo svg { width: 36px; height: 36px; }
.header__logo span { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
    color: var(--text);
    font-size: .95rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-mid);
    transition: width var(--transition);
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a.active { color: var(--green-dark); }

.nav__cta {
    background: var(--green-mid) !important;
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: var(--radius);
    font-weight: 600 !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--green-dark) !important; }

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 16px;
    }
    .nav.open { display: flex; }
    .nav a { font-size: 1.05rem; }
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #1a5a3a 100%);
    color: var(--white);
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184,146,63,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: var(--gold-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: .9;
    margin-bottom: 36px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
    justify-content: center;
}
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: #a07e2f; color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn--green { background: var(--green-mid); color: var(--white); }
.btn--green:hover { background: var(--green-dark); color: var(--white); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.cards-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--green-light);
}
.card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--green-light);
    color: var(--green-mid);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--green-dark);
}
.card p { color: var(--text-light); line-height: 1.7; }
.card__price {
    margin-top: 16px;
    font-size: .9rem;
    color: var(--gold);
    font-weight: 600;
}

/* --- Stats --- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 0;
}
.stat { text-align: center; }
.stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
}
.stat__label {
    font-size: .95rem;
    color: var(--text-light);
    margin-top: 6px;
}

@media (max-width: 768px) {
    .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* --- Trust / Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}
.feature { text-align: center; padding: 20px; }
.feature__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--green-mid);
}
.feature__icon svg { width: 32px; height: 32px; }
.feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature p { color: var(--text-light); font-size: .95rem; }

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
}
.testimonial__stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial__text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}
.testimonial__author {
    font-weight: 700;
    font-size: .9rem;
    color: var(--green-dark);
}
.testimonial__location {
    font-size: .85rem;
    color: var(--text-muted);
}

/* --- Cities Grid --- */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.city-link {
    display: block;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    transition: all var(--transition);
}
.city-link:hover {
    border-color: var(--green-mid);
    background: var(--green-light);
    color: var(--green-dark);
    transform: translateX(4px);
}

/* --- Pricing Table --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    position: relative;
}
.pricing-card--featured {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}
.pricing-card--featured::before {
    content: 'Mas solicitado';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    padding: 4px 18px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card h3 {
    font-size: 1.3rem;
    color: var(--green-dark);
    margin-bottom: 8px;
}
.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 16px 0;
}
.pricing-card__price small {
    font-size: .9rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-card__features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}
.pricing-card__features li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-card__features li::before {
    content: '✓';
    color: var(--green-mid);
    font-weight: 700;
    flex-shrink: 0;
}

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: inherit;
}
.faq-question:hover { color: var(--green-mid); }
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 22px;
}
.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(45,122,79,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
    background: var(--green-dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.contact-info-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: .8;
}
.contact-info-item a { color: var(--white); }
.contact-info-item a:hover { color: var(--gold-light); }
.contact-info-item span { opacity: .9; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, #1a5a3a 100%);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-banner p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; max-width: 550px; margin-left: auto; margin-right: auto; }

/* --- City page specifics --- */
.city-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #1d5e3e 50%, #1a4a2e 100%);
    color: var(--white);
    padding: 80px 0 70px;
}
.city-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.city-hero p { font-size: 1.1rem; opacity: .9; max-width: 650px; line-height: 1.8; }

.breadcrumb {
    padding: 12px 0;
    font-size: .85rem;
    color: var(--text-muted);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green-mid); }

.city-content { padding: 60px 0; }
.city-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--green-dark);
}
.city-content h2:first-child { margin-top: 0; }
.city-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.nearby-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.nearby-tag {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background: #111;
    color: rgba(255,255,255,.7);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
}
.footer p { font-size: .9rem; line-height: 1.7; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: color var(--transition);
}
.footer ul a:hover { color: var(--white); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,.4);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- Service Detail Page --- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail h2 {
    font-size: 1.6rem;
    color: var(--green-dark);
    margin-bottom: 16px;
}
.service-detail p { color: var(--text-light); line-height: 1.8; }
.service-detail__visual {
    background: var(--green-light);
    border-radius: var(--radius-lg);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-detail__visual svg { width: 80px; height: 80px; color: var(--green-mid); opacity: .5; }

@media (max-width: 768px) {
    .service-detail { grid-template-columns: 1fr; gap: 30px; }
    .service-detail:nth-child(even) { direction: ltr; }
    .hero h1 { font-size: 2rem; }
    .city-hero h1 { font-size: 1.8rem; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
}

/* --- About page --- */
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.value-card {
    text-align: center;
    padding: 30px 20px;
}
.value-card h3 {
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}
.value-card p { color: var(--text-light); font-size: .95rem; }

/* --- WhatsApp float --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 99;
    transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

/* --- Phone float --- */
.phone-float {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--green-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: all var(--transition);
}
.phone-float:hover { transform: scale(1.1); background: var(--green-dark); }
.phone-float svg { width: 28px; height: 28px; fill: white; }

/* --- Utilities --- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Schema/SEO hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
