:root {
    --primary: #0B1D3A;
    --primary-light: #132F52;
    --secondary: #00B4D8;
    --accent: #FF6B35;
    --white: #FFFFFF;
    --bg: #F8F9FA;
    --text: #1A1A2E;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: 0.25s ease;
    --max-width: 1200px;
}

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

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- 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;
    height: 70px;
}

.header__logo { display: flex; flex-direction: column; gap: 2px; }

.header__name {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.header__tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__nav-list a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.header__nav-list .btn {
    min-width: 180px;
    text-align: center;
}

.header__nav-list a:not(.btn):hover { color: var(--secondary); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ----- Internal links ----- */
.card__text a,
.section__desc a,
.hero__subtitle a,
.internal-link {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 500;
}
.card__text a:hover,
.section__desc a:hover,
.hero__subtitle a:hover,
.internal-link:hover {
    color: #0098b3;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--secondary), #0098b3);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 180, 216, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn--large { padding: 16px 36px; font-size: 1rem; font-weight: 600; }
.btn--sm { padding: 8px 16px; font-size: 0.8rem; }

.btn--urgent {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: var(--white);
    border-color: #16a34a;
    animation: urgentPulse 2s infinite;
}

.btn--urgent:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: var(--white);
    transform: translateY(-2px);
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
}
.btn--full { width: 100%; padding: 12px 28px; align-self: center; }


.btn--whatsapp {
    background: linear-gradient(135deg, #25D366, #1ebe52);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

/* ----- Hero ----- */
.hero {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 60%, #0D2137 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--primary) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero__content {
    flex: 1;
    max-width: 580px;
    padding: 40px 48px 40px 48px;
}

.hero__badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.15);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    text-wrap: balance;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 900px;
    text-align: center;
}

.hero__image {
    position: absolute;
    top: 0;
    right: calc((1200px - 100vw) / 2);
    width: 50vw;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 15%);
    z-index: 2;
    pointer-events: none;
}

.hero__image-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
    transform: scaleX(-1);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero .btn--primary { margin-right: 12px; }

/* ----- Hero responsive ----- */
@media (max-width: 1024px) {
    .hero__image::before {
        background: linear-gradient(90deg, var(--primary) 0%, transparent 30%);
    }
}

@media (max-width: 900px) {
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .hero__container {
        order: 1;
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    .hero__content {
        max-width: 100%;
        padding: 40px 16px 24px;
        text-align: center;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__image {
        position: relative;
        order: 2;
        width: 100%;
        height: auto;
        top: auto;
        right: auto;
    }
    .hero__image::before { display: none; }
    .hero__image-wrap {
        width: 100%;
        max-height: 300px;
        overflow: hidden;
    }
    .hero__image-wrap img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: 45% 30%;
        transform: scaleX(-1);
    }
    .hero::after { display: none; }
    .hero .btn--primary { margin-right: 0; margin-bottom: 12px; }
    .hero .btn { width: 100%; }
}

/* ----- Sections ----- */
.section { padding: 80px 0; }

.section--dark {
    background: var(--primary);
    color: var(--white);
}

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section__title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--primary);
    text-wrap: balance;
    text-align: center;
}

.section--dark .section__title { color: var(--white); }

.section__desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 900px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section--dark .section__desc { color: rgba(255, 255, 255, 0.65); }

/* ----- Grid ----- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ----- Cards ----- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.section--dark .card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.section--dark .card:hover { background: rgba(255, 255, 255, 0.1); }

.card__img-placeholder {
    width: 100%;
    height: 180px;
    background: #E5E7EB;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 0.85rem;
}

.card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: block;
}

.card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.section--dark .card__title { color: var(--white); }

.card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----- Zonas Grid ----- */
.zonas__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.zona__card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition);
    text-align: center;
}

.zona__card--all {
    background: rgba(0, 180, 216, 0.15);
    border-color: var(--secondary);
    font-weight: 700;
    color: var(--secondary);
}

.zona__card:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.zonas__subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 32px 0 12px;
    text-align: center;
}

.zonas__subtitle:first-of-type {
    margin-top: 0;
}

.zonas__subtitle--sm {
    font-size: 0.9rem;
    margin: 20px 0 8px;
    font-weight: 600;
}

.zonas__grid--services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

/* ----- Formulario ----- */
.contacto__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contacto__grid > .form {
    height: 100%;
}

.form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form .btn--full {
    margin-top: auto;
}

.form__group { display: flex; flex-direction: column; gap: 4px; }

.form__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form__input, select.form__input {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition);
    background: var(--white);
    color: var(--text);
}

.form__input:focus { border-color: var(--secondary); }
.form__input--textarea { resize: vertical; min-height: 120px; }

select.form__input { appearance: auto; }

.contacto__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacto__info .btn--whatsapp {
    margin-top: auto;
}

.contacto__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.contacto__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.contacto__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.contacto__value a { color: var(--primary); }
.contacto__value a:hover { color: var(--secondary); }

.contacto__map { margin-top: 4px; }

.map-placeholder {
    width: 100%;
    height: 160px;
    background: #E5E7EB;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* ----- Footer ----- */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0 0;
    font-size: 0.85rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 32px;
}

.footer__col { display: flex; flex-direction: column; gap: 8px; }

.footer__copy { font-weight: 700; color: var(--white); font-size: 1rem; margin-bottom: 4px; }

.footer__heading { font-weight: 700; color: var(--white); font-size: 0.9rem; margin-bottom: 4px; }

.footer__text { font-size: 0.85rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }

.footer__link { color: var(--secondary); transition: color var(--transition); }

.footer__link:hover { color: var(--white); }

.footer__social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
}

.footer__social a:hover {
    background: var(--secondary);
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
}

.footer__disclaimer {
    font-style: italic;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    max-width: 500px;
    margin: 0 auto 8px;
    line-height: 1.5;
}

.footer__copy--small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.3); }

/* ----- FAQ ----- */
.section--alt { background: var(--bg); }

.faq__list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq__question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--secondary);
    transition: transform var(--transition);
}

.faq__item--open .faq__question::after { transform: rotate(45deg); }

.faq__question:hover { background: rgba(0, 180, 216, 0.04); }

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq__item--open .faq__answer {
    max-height: 300px;
    padding: 0 24px 18px;
}

.faq__answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ----- Section alt variant ----- */
.section--alt .section__title { color: var(--primary); }

/* ----- Hero actions centrado ----- */
.hero .btn {
    margin: 4px;
}

/* ----- Testimonios ----- */
.testimonios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonio__card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonio__stars {
    font-size: 1.3rem;
    color: #F59E0B;
    letter-spacing: 2px;
}

.testimonio__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonio__author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .testimonios__grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Section Footer (centrado) ----- */
.section__footer {
    text-align: center;
    margin-top: 48px;
}

.section__footer .btn {
    margin: 4px;
    min-width: 180px;
}



/* ----- Responsive ----- */
@media (max-width: 900px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .zonas__grid { grid-template-columns: repeat(3, 1fr); }
    .contacto__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .header__nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    .header__nav--open { display: block; }
    .header__nav-list { flex-direction: column; gap: 16px; align-items: stretch; }
    .header__nav-list a:not(.btn) { display: block; padding: 8px 0; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {
    .hero { min-height: 400px; }
    .hero__title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .hero .btn { width: 100%; margin: 6px 0; }
    .grid--3 { grid-template-columns: 1fr; }
    .grid--2 { grid-template-columns: 1fr; }
    .zonas__grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 48px 0; }
    .section__header { margin-bottom: 36px; }
    .section__desc { font-size: 1rem; }
    .card { padding: 20px; }
    .card__img-placeholder { height: 140px; }
    .card__title { font-size: 1rem; }
    .card__text { font-size: 0.85rem; }
    .section__footer { margin-top: 32px; }
    .testimonio__card { padding: 20px; }
    .zonas__subtitle { font-size: 1rem; margin: 24px 0 10px; }
}

@media (max-width: 480px) {
    .header { padding-top: 6px; }
    .zonas__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .zona__card { padding: 12px 8px; font-size: 0.85rem; }
    .form { padding: 20px; }
    .card__img-placeholder { height: 120px; }
    .hero { min-height: auto; }
    .hero__subtitle { font-size: 0.95rem; }
    .section { padding: 36px 0; }
    .section__header { margin-bottom: 28px; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer__social { justify-content: center; }
}
