﻿/* ============================================
   KUKYNET — Styles (assets/css/styles.css)
   ============================================ */

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

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ----- CSS Variables ----- */
:root {
    --logo-color:#03398a;
    --primary:       #0B1D3A;
    --primary-light: #1A3A6B;
    --secondary:     #00B4D8;
    --accent:        #FF6B35;
    --dark:          #0A0E1A;
    --light:         #F8F9FA;
    --text:          #1A1A2E;
    --text-muted:    #6C757D;
    --success:       #2EC4B6;
    --whatsapp:      #25D366;
    --white:         #FFFFFF;
    --border:        #E9ECEF;
    --radius:        12px;
    --radius-sm:     8px;
    --shadow:        0 4px 24px rgba(11, 29, 58, 0.08);
    --shadow-hover:  0 8px 40px rgba(11, 29, 58, 0.14);
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width:     1200px;
    --header-height: 80px;
}

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

/* ----- Header ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: height var(--transition), box-shadow var(--transition);
}

.header--scrolled {
    height: 64px;
    box-shadow: 0 4px 24px rgba(11, 29, 58, 0.06);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    font-size: 0;
    font-weight: normal;
    margin: 0;
    line-height: 1;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: 28px;
    text-decoration: none;
}

.header__logo-img {
    width: 72px;
    height: auto;
    flex-shrink: 0;
    transition: width var(--transition);
   
 border-radius: 8px;
}

.header--scrolled .header__logo-img {
    width: 50px;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.header__logo-name {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Roboto Condensed', sans-serif;
    color: var( --logo-color);
    letter-spacing: 4px;
    transition: font-size var(--transition);
    line-height: 1;
}

.header--scrolled .header__logo-name {
    font-size: 1.6rem;
}

.header__logo-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

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

.header__toggle-bar {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header__toggle--open .header__toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.header__toggle--open .header__toggle-bar:nth-child(2) {
    opacity: 0;
}
.header__toggle--open .header__toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

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

.header__nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition);
}

.header__nav-link:hover {
    color: var(--secondary);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link--cta {
    background: linear-gradient(135deg, var(--secondary), #0098b3);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.header__nav-link--cta::after {
    display: none;
}

.header__nav-link--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.35);
}

/* ----- Hero ----- */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 40%, #0D2137 100%);
    color: var(--white);
    padding: calc(var(--header-height) + 10px) 0 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    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%;
}

.hero__content {
    max-width: 580px;
    padding: 40px 0 80px;
}

.hero__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    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: 45% center;
    display: block;
    transform: scaleX(-1);
}

/* ----- Pillar cards (Por qué Kukynet) ----- */
.card--pillar {
    text-align: center;
    padding: 36px 24px;
}

.card__num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.6;
}

.card--pillar .card__title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.card--pillar .card__text {
    font-size: 0.9rem;
}

/* ----- Hero Stats Bar ----- */
.hero-stats {
    background: linear-gradient(135deg, #0F2A4A 0%, #132F52 100%);
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.hero-stats__inner {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-stats__number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.hero-stats__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

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



.hero__badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(0, 180, 216, 0.05));
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.hero__title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero__subtitle {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 500px;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* ----- 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: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--secondary), #0098b3);
    color: var(--white);
    border-color: transparent;
    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--full {
    padding: 10px 24px;
    font-size: 0.85rem;
    align-self: center;
}

.btn--whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    border-color: var(--whatsapp);
    width: 100%;
    border-radius: 50px;
}

.btn--whatsapp:hover {
    background: #1ebe52;
    border-color: #1ebe52;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

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

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

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

#contacto.section {
    padding: 24px 0;
}

.section--dark .section__cta-text {
    color: rgba(255, 255, 255, 0.8);
}

.section--alt {
    background: #F0F2F5;
}

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

.section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
    color: var(--primary);
    text-wrap: balance;
}

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

.section__desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 680px;
    margin-inline: auto;
    text-wrap: pretty;
}

.section__footer {
    text-align: center;
    margin-top: 48px;
}

.section__cta-text {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.section__cta-btn {
    margin-top: 8px;
}

.link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.link:hover {
    color: var(--accent);
}

/* ----- Grid ----- */
.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.card--lead,
.card--service {
    border-top: 3px solid var(--secondary);
}

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

.section--dark .card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section--dark .card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
}

.card__icon {
    color: var(--secondary);
    margin-bottom: 20px;
}

.card__icon--accent {
    color: var(--accent);
}

.card__num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.5;
}

.card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

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

.section--dark .card__text {
    color: rgba(255, 255, 255, 0.7);
}

.card__features {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card__features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
}

.card__features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

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

.card__price {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card__price strong {
    color: var(--primary);
    font-size: 1.3rem;
}

/* ----- Cobertura ----- */
.cobertura__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.cobertura__block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.cobertura__block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cobertura__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cobertura__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 16px;
}

.cobertura__list li {
    font-size: 0.9rem;
    color: var(--text);
    padding: 3px 0;
    position: relative;
    padding-left: 18px;
}

.cobertura__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.6;
}

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

.portfolio__card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

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

.portfolio__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.portfolio__tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
}

.portfolio__status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(46, 196, 182, 0.1);
    color: var(--success);
}

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

.portfolio__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.portfolio__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.portfolio__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.portfolio__link:hover {
    color: var(--primary-light);
}

.portfolio__link--soon {
    color: var(--text-muted);
    cursor: default;
    font-style: italic;
}

/* ----- FAQ ----- */
.faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.faq__item:hover {
    box-shadow: var(--shadow);
}

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

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

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

.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;
}

.faq__answer a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
}

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

.form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form__group {
    margin-bottom: 4px;
}
.form__group:last-of-type {
    margin-bottom: 8px;
}

.form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.85);
}

.form__input {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.form__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form__input:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.form__input--textarea {
    resize: vertical;
    min-height: 60px;
}

.form__error {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 4px;
    min-height: 20px;
}

.form__input--error {
    border-color: var(--accent) !important;
}

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

.contacto__info .contacto__map {
    flex: 1;
    min-height: 0;
}

.contacto__info .contacto__map iframe {
    height: 100%;
    min-height: 100px;
}

.contacto__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.contacto__item svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--secondary);
}

.contacto__map {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ----- Footer ----- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 56px 0 0;
    border-top: none;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    height: 36px;
    width: auto;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer__phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

.footer__text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 260px;
}

.footer__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.footer__link {
    font-size: 0.88rem;
    transition: color var(--transition);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer__social a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

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

/* ----- WhatsApp Float ----- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.6); }
}

/* ----- Responsive: Tablet ----- */
@media (max-width: 1024px) {
    .hero__image {
        width: 45%;
    }
    .hero__image::before {
        background: linear-gradient(90deg, var(--primary) 0%, transparent 30%);
    }
    .hero-stats__inner {
        gap: 40px;
    }
}

@media (max-width: 890px) {
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacto__grid {
        grid-template-columns: 1fr;
    }
    .hero-stats__inner {
        gap: 32px;
    }
    .hero {
        display: flex;
        flex-direction: column;
    }
    .hero__container {
        order: 1;
    }
    .hero__content {
        padding: 20px 0 24px;
    }
    .hero__image {
        position: relative;
        order: 2;
        width: 100%;
        height: auto;
        top: auto;
        right: auto;
        overflow: hidden;
    }
    .hero__image::before {
        display: none;
    }
    .hero__image-wrap {
        width: 100%;
        height: auto;
        overflow: hidden;
        max-height: 320px;
    }
    .hero__image-wrap img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: 45% 30%;
        transform: scaleX(-1);
    }
}

/* ----- Responsive: Tablet / Mobile ----- */
@media (max-width: 900px) {
    .header__toggle {
        display: flex;
    }
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        padding: 88px 32px 32px;
        transition: right var(--transition);
        z-index: 1000;
        border-left: 1px solid var(--border);
    }
    .header__nav--open {
        right: 0;
    }
    .header__nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .header__nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
        display: block;
    }
    .header__nav-link--cta {
        width: 100%;
        text-align: center;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 0;
        padding: calc(var(--header-height) + 4px) 0 0;
        display: flex;
        flex-direction: column;
    }
    .hero__container {
        order: 1;
    }
    .hero__content {
        text-align: left;
        padding: 16px 24px 24px;
        max-width: 100%;
    }
    .hero__title {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
        text-wrap: balance;
    }
    .hero__subtitle {
        font-size: 0.88rem;
        max-width: 100%;
        margin-bottom: 18px;
    }
    .hero__actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .hero__actions .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .hero__badge {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    .hero-stats__inner {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    .hero-stats__item {
        align-items: center;
    }
    .hero-stats {
        padding: 28px 16px;
    }
    .hero-stats__number {
        font-size: 1.8rem;
    }
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
    .cobertura__grid {
        grid-template-columns: 1fr;
    }
    .cobertura__list {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .footer__nav {
        align-items: flex-start;
    }
    .footer__text {
        max-width: 100%;
    }
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    .form {
        padding: 16px;
    }
    .section__desc,
    .card__text,
    .portfolio__desc,
    .faq__answer p,
    .cobertura__list li,
    .footer__text,
    .contacto__item span {
        text-align: left;
    }
    .section__desc {
        font-size: 1.15rem;
        max-width: 100%;
    }
    .card__text {
        font-size: 1.05rem;
    }
    .section__title {
        font-size: 1.6rem;
    }
    .portfolio__title {
        font-size: 1.15rem;
    }
    .card__title {
        font-size: 1.15rem;
    }
    .cobertura__title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .header__logo a {
        gap: 18px;
    }
    .header__logo-img {
        width: 50px;
        height: 50px;
    }
    .header__logo-name {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    .header__logo-tagline {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    .hero__actions .btn {
        width: 100%;
    }
    .section {
        padding: 64px 0;
    }
    .card {
        padding: 24px;
    }
    .cobertura__block {
        padding: 24px;
    }
}
