/* =============================================
   M&G PetLog — Landing Page Styles
   Clean, premium, corporativo
   ============================================= */

/* ---------- Reset & Custom Properties ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --blue-dark: #0f2a4a;
    --blue-mid: #1a3e6e;
    --blue-light: #2a5f9e;
    --blue-accent: #3b7dce;

    /* Neutral palette */
    --white: #ffffff;
    --off-white: #f7f8fa;
    --gray-50: #f0f2f5;
    --gray-100: #e4e7ec;
    --gray-200: #c8ced8;
    --gray-400: #8d96a4;
    --gray-600: #5a6270;
    --gray-800: #2d3340;

    /* WhatsApp green */
    --green-wa: #25d366;
    --green-wa-hover: #1fba59;
    --green-wa-dark: #128c4a;

    /* Star */
    --star: #f5b731;

    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --section-py: 6rem;
    --container-max: 1180px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .10);
    --shadow-card: 0 2px 12px rgba(15, 42, 74, .07);

    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- Utility ---------- */
.container {
    width: 92%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--blue-dark);
    text-align: center;
    margin-bottom: .75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow .3s var(--ease);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.logo img {
    height: 44px;
    width: auto;
}

.logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--blue-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    font-size: .92rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color .25s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-accent);
    border-radius: 2px;
    transition: width .3s var(--ease);
}

.nav-links a:hover {
    color: var(--blue-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

/* CTA WhatsApp header */
.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    background: var(--green-wa);
    color: var(--white);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
    white-space: nowrap;
}

.btn-wa:hover {
    background: var(--green-wa-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
}

.btn-wa svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Hamburger / Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    padding-top: calc(72px + 5rem);
    padding-bottom: var(--section-py);
    background: linear-gradient(175deg, var(--off-white) 0%, var(--white) 60%);
    position: relative;
    overflow: hidden;
}

/* Decorative circle */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 125, 206, .08), transparent 70%);
    top: -120px;
    right: -100px;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero-content h1 span {
    color: var(--blue-accent);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 2.2rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    background: var(--green-wa);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}

.btn-primary:hover {
    background: var(--green-wa-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    background: transparent;
    color: var(--blue-dark);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--blue-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}

.btn-secondary:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero image area */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual .hero-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(15, 42, 74, .12);
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =============================================
   BENEFITS
   ============================================= */
.benefits {
    padding: var(--section-py) 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.benefit-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: var(--white);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: .6rem;
}

.benefit-card p {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
    padding: var(--section-py) 0;
    background: var(--off-white);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-50);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.02rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text .btn-wa {
    margin-top: .5rem;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
    padding: var(--section-py) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.service-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    border: 1px solid var(--gray-100);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-accent);
}

.service-card .service-icon {
    font-size: 2rem;
    margin-bottom: .8rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: .5rem;
}

.service-card p {
    font-size: .92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.services .center-btn {
    text-align: center;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
    padding: var(--section-py) 0;
    background: var(--off-white);
}

.steps {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-accent));
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: .5rem;
}

.step p {
    font-size: .92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Connector line between steps (desktop) */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -1rem;
    width: calc(2rem);
    height: 2px;
    background: var(--gray-200);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
    padding: var(--section-py) 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    border: 1px solid var(--gray-100);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--star);
    font-size: 1.1rem;
    margin-bottom: .8rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 700;
}

.testimonial-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--blue-dark);
}

.testimonial-role {
    font-size: .8rem;
    color: var(--gray-400);
}

/* =============================================
   QUOTE FORM
   ============================================= */
.quote {
    padding: var(--section-py) 0;
    background: linear-gradient(175deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
    color: var(--white);
}

.quote .section-title {
    color: var(--white);
}

.quote .section-subtitle {
    color: rgba(255, 255, 255, .7);
}

.quote-form {
    max-width: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: rgba(255, 255, 255, .85);
}

.form-group input,
.form-group select {
    padding: .8rem 1rem;
    border: 2px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font-size: .95rem;
    font-family: var(--font-primary);
    transition: border-color .25s var(--ease), background .25s var(--ease);
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.form-group select option {
    color: var(--gray-800);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--green-wa);
    background: rgba(255, 255, 255, .12);
}

.quote-form .btn-submit {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 2rem;
    background: var(--green-wa);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: .5rem;
    transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}

.quote-form .btn-submit:hover {
    background: var(--green-wa-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--gray-800);
    color: var(--gray-200);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo span {
    color: var(--white);
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 320px;
}

.footer-address h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    margin-bottom: .8rem;
    font-size: 1rem;
}

.footer-address p {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--gray-400);
}

.footer-social .social-links {
    display: flex;
    gap: .8rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--gray-200);
    transition: background .25s var(--ease), transform .2s var(--ease);
}

.social-links a:hover {
    background: var(--green-wa);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .82rem;
    color: var(--gray-400);
}

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--green-wa);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, .4);
    z-index: 999;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
}

.wa-float svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual .hero-image {
        max-width: 340px;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .step:not(:last-child)::after {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-py: 4rem;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform .35s var(--ease);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a,
    .nav-links .btn-wa {
        padding: 1rem 2rem;
        font-size: 1.05rem;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: flex;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .quote-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .hero-visual .hero-image {
        max-width: 100%;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}