:root {
    --petroleo-900: #163e47;
    --petroleo-700: #26616d;
    --petroleo-500: #3f7f8b;
    --petroleo-100: #dcecef;
    --rosa-600: #c97797;
    --rosa-500: #da91ad;
    --rosa-300: #efc4d3;
    --rosa-100: #fceff5;
    --rosa-050: #fff7fb;
    --neutral-50: #f9fbfb;
    --neutral-100: #f3f6f7;
    --neutral-700: #4b5d63;
    --neutral-900: #24373d;
    --white: #ffffff;
    --border-soft: #d3e1e5;
    --shadow-soft: 0 16px 38px rgba(29, 68, 76, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --max-width: 1120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--neutral-900);
    position: relative;
    overflow-x: hidden;
    background:
    radial-gradient(circle at 8% 8%, rgba(218, 145, 173, 0.38), transparent 43%),
    radial-gradient(circle at 90% 20%, rgba(63, 127, 139, 0.16), transparent 45%),
    radial-gradient(circle at 24% 78%, rgba(239, 196, 211, 0.32), transparent 44%),
    linear-gradient(180deg, #fff9fc 0%, #fbf2f7 50%, #f4f7f9 100%);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 248, 252, 0.9);
    border-bottom: 1px solid rgba(218, 145, 173, 0.28);
    box-shadow: 0 10px 26px rgba(88, 33, 55, 0.08);
    backdrop-filter: blur(8px);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    background: rgba(255, 247, 251, 0.94);
    border-color: rgba(218, 145, 173, 0.34);
    box-shadow: 0 10px 24px rgba(99, 44, 66, 0.11);
    backdrop-filter: blur(8px);
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.7rem 1.25rem;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    width: min(32vw, 330px);
    flex: 0 0 auto;
}

.logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--petroleo-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    padding: 0.42rem 0.62rem;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--rosa-600);
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(218, 145, 173, 0.24);
}

.nav-ico {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: visible;
}

.nav-ico svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.active-nav {
    color: var(--petroleo-900);
    background: linear-gradient(135deg, rgba(220, 236, 239, 0.66), rgba(255, 255, 255, 0.84));
    border-color: rgba(38, 97, 109, 0.24);
}

.nav-link-chip {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(38, 97, 109, 0.22);
}

.nav-link-chip .nav-ico svg {
    stroke: #cc1b08;
}

.nav-link-whatsapp {
    border-color: rgba(38, 97, 109, 0.3);
    background: linear-gradient(135deg, rgba(220, 236, 239, 0.72), rgba(255, 255, 255, 0.92));
    padding: 0.42rem 0.85rem;
}

.nav-link-whatsapp .nav-ico svg {
    stroke: #25d366;
    stroke-width: 2.2;
}

.nav-link-whatsapp:hover {
    color: var(--petroleo-900);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.22), rgba(255, 255, 255, 0.9));
    border-color: rgba(38, 97, 109, 0.44);
}

/* HERO */
.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    place-items: center;
    padding: 9.3rem 1.25rem 4rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(22, 62, 71, 0.05), rgba(218, 145, 173, 0.14)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(250, 240, 246, 0.84));
}

.hero-overlay::before,
.hero-overlay::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero-overlay::before {
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 500'%3E%3Cdefs%3E%3Cg id='m'%3E%3Cpath d='M30 14c-10 0-18 8-18 18 0 8 3 14 7 20 3 5 5 9 5 16 1 6 4 10 8 10s7-4 9-10c1-5 3-9 5-14 2 5 4 9 5 14 2 6 5 10 9 10s7-4 8-10c1-7 3-11 6-16 3-6 7-12 7-20 0-10-8-18-18-18-6 0-11 3-16 8-5-5-10-8-16-8z' fill='%23ffeef5' stroke='%23cc7a99' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23m' transform='translate(60 48) rotate(-10 30 36)'/%3E%3Cuse href='%23m' transform='translate(230 30) rotate(14 30 36) scale(0.78)'/%3E%3Cuse href='%23m' transform='translate(430 70) rotate(-6 30 36) scale(1.05)'/%3E%3Cuse href='%23m' transform='translate(30 260) rotate(18 30 36) scale(0.68)'/%3E%3Cuse href='%23m' transform='translate(310 200) rotate(-20 30 36) scale(0.85)'/%3E%3Cuse href='%23m' transform='translate(510 280) rotate(8 30 36) scale(0.72)'/%3E%3Cuse href='%23m' transform='translate(150 370) rotate(-14 30 36) scale(0.9)'/%3E%3Cuse href='%23m' transform='translate(400 390) rotate(12 30 36) scale(0.75)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 620px 520px;
    background-position: 0 0;
    opacity: 0.18;
    animation: heroSymbolFloat 18s ease-in-out infinite alternate;
}

.hero-overlay::after {
    inset: 0;
    background:
        radial-gradient(420px 190px at 18% 72%, rgba(210, 122, 156, 0.16), transparent 70%),
        radial-gradient(340px 160px at 82% 24%, rgba(255, 255, 255, 0.46), transparent 72%);
    opacity: 0.44;
    animation: shimmerFloat 16s ease-in-out infinite alternate;
}

.hero-carousel {
    position: relative;
    z-index: 2;
    max-width: 760px;
    width: min(100%, 760px);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.82), rgba(252, 239, 245, 0.62));
    border: 1px solid rgba(239, 196, 211, 0.76);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.6rem 1.3rem;
    box-shadow: var(--shadow-soft);
    animation: reveal 0.7s ease-out;
    overflow: hidden;
}

.hero-track {
    position: relative;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    text-align: center;
    opacity: 0;
    transform: translateX(16px) scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-label {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7f4258;
    background: linear-gradient(135deg, rgba(239, 196, 211, 0.92), rgba(220, 236, 239, 0.72));
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    color: var(--petroleo-900);
    margin-bottom: 0.95rem;
}

.hero-subtitle {
    color: var(--neutral-700);
    font-size: clamp(1rem, 2vw, 1.13rem);
    margin-bottom: 1.7rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(218, 145, 173, 0.5);
    background: rgba(255, 255, 255, 0.75);
    color: var(--petroleo-700);
    font-size: 1.65rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-control:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(255, 255, 255, 0.94);
}

.hero-control-prev {
    left: 0.65rem;
}

.hero-control-next {
    right: 0.65rem;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: none;
    background: rgba(38, 97, 109, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
    background: var(--petroleo-700);
    transform: scale(1.2);
}

.btn-agendar,
.btn-submit,
.btn-enviar {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.82rem 1.4rem;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background: linear-gradient(125deg, var(--rosa-500), var(--petroleo-500));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(121, 60, 83, 0.24);
}

.btn-agendar:hover,
.btn-submit:hover,
.btn-enviar:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    text-decoration: none;
    padding: 0.78rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(218, 145, 173, 0.45);
    color: #7f4258;
    font-weight: 700;
    background: linear-gradient(130deg, rgba(255, 247, 251, 0.95), rgba(239, 196, 211, 0.52));
}

/* SECCIONES */
.servicios,
.acerca-de,
.contacto {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--petroleo-900);
    margin-bottom: 0.6rem;
}

.section-description {
    text-align: center;
    color: var(--neutral-700);
    max-width: 730px;
    margin: 0 auto 2.2rem;
}

/* SERVICIOS */
.servicios-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(252, 239, 245, 0.76));
    border-radius: var(--radius-md);
    border: 1px solid rgba(218, 145, 173, 0.4);
    padding: 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(139, 79, 102, 0.16);
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--petroleo-900);
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.service-card p {
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.medios-pago {
    margin-top: 2rem;
    text-align: center;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 62, 71, 0.06), rgba(63, 127, 139, 0.1));
    border: 1px solid rgba(38, 97, 109, 0.22);
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.medios-pago p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--petroleo-700);
}

/* SOBRE NOSOTROS */
.acerca-de {
    background: linear-gradient(180deg, rgba(255, 247, 251, 0.85), rgba(249, 251, 251, 0.95));
}

.content-grid {
    margin-bottom: 1.3rem;
}

.content-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 239, 245, 0.45));
    border: 1px solid rgba(239, 196, 211, 0.66);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 14px 32px rgba(41, 84, 91, 0.08);
    color: var(--neutral-700);
}

.mission-vision {
    margin-top: 1.2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    border-radius: var(--radius-md);
    padding: 1.3rem;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(252, 239, 245, 0.58));
    border: 1px solid rgba(239, 196, 211, 0.66);
}

.card h3 {
    margin-bottom: 0.4rem;
    font-family: 'Poppins', sans-serif;
    color: var(--petroleo-900);
}

.card p {
    color: var(--neutral-700);
    font-size: 0.95rem;
}

/* CONTACTO */
.contacto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
}

.contacto-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
    grid-column: 1 / -1;
}

.info-item {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(252, 239, 245, 0.45));
    border: 1px solid rgba(239, 196, 211, 0.58);
    border-left: 4px solid var(--rosa-500);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
}

.info-content h4 {
    color: var(--petroleo-900);
    margin-bottom: 0.3rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.96rem;
}

.info-content p {
    color: var(--neutral-700);
    font-size: 0.93rem;
}

.telefono-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.telefono-container p {
    flex: 1;
    margin: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: transparent;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: none;
    flex-shrink: 0;
}

.btn-whatsapp:hover {
    background: transparent;
    transform: scale(1.15);
    box-shadow: none;
}

.btn-whatsapp svg {
    fill: currentColor;
    width: 28px;
    height: 28px;
}

.btn-whatsapp-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.medios-pago-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.medios-pago-wrapper p {
    flex: 1;
}

.medios-pago-container {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.medios-pago-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.medios-pago-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.info-content p a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.info-content p a:hover {
    color: var(--rosa-500);
}

.contacto-form-container {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.99), rgba(252, 239, 245, 0.56));
    border: 1px solid rgba(239, 196, 211, 0.65);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: 0 12px 28px rgba(38, 91, 100, 0.09);
}

.contacto-form,
#formularioAgenda {
    display: grid;
    gap: 0.95rem;
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    color: #7f4258;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(218, 145, 173, 0.36);
    background: var(--rosa-050);
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--neutral-900);
}

.form-group textarea {
    resize: vertical;
    min-height: 124px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rosa-500);
    box-shadow: 0 0 0 3px rgba(218, 145, 173, 0.2);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(91, 39, 60, 0.4);
    padding: 1.1rem;
}

.modal-content {
    max-width: 520px;
    margin: 3rem auto 0;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.99), rgba(252, 239, 245, 0.74));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 196, 211, 0.76);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: reveal 0.24s ease;
}

.modal-content h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--petroleo-900);
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 1.7rem;
    color: var(--neutral-700);
    cursor: pointer;
}

/* FOOTER */
.footer {
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(252, 239, 245, 0.92), rgba(239, 196, 211, 0.68));
    border-top: 1px solid rgba(218, 145, 173, 0.38);
}

.footer p {
    color: var(--petroleo-700);
    font-size: 0.92rem;
}

/* MOTION SUAVE */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSymbolFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    33% {
        transform: translate3d(-18px, 12px, 0) rotate(-4deg);
    }
    66% {
        transform: translate3d(12px, -10px, 0) rotate(3deg);
    }
    100% {
        transform: translate3d(-22px, 16px, 0) rotate(-5deg);
    }
}

@keyframes shimmerFloat {
    from {
        transform: translateY(0);
        opacity: 0.42;
    }
    to {
        transform: translateY(-10px);
        opacity: 0.58;
    }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .servicios-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .servicios-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission-vision,
    .contacto-grid,
    .contacto-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero-overlay::before {
        background-size: 210px 160px;
        background-position: 88% 14%;
        opacity: 0.12;
    }

    .navbar-logo {
        width: min(62vw, 250px);
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .nav-menu {
        width: 100%;
        justify-content: flex-start;
        gap: 0.42rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.84rem;
        padding: 0.36rem 0.55rem;
    }

    .hero {
        min-height: 84vh;
        padding-top: 10.8rem;
    }

    .hero-carousel {
        padding: 1.7rem 1.1rem 1.05rem;
    }

    .hero-track {
        min-height: 300px;
    }

    .hero-slide {
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-control {
        display: none;
    }

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