/*
Theme Name:  Escasub
Theme URI:   https://escasub.com
Author:      Softwec
Author URI:  https://softwec.dev
Description: Theme personalizado para ESCASUB S.A. — Centro de Buceo y Actividades Sub-Acuáticas
Version:     1.0.0
License:     Proprietary
Text Domain: escasub
*/

/* ============================================================
   VARIABLES & FOUNDATIONS
   ============================================================ */
:root {
    --primary:        #2874A6;
    --primary-dark:   #1B4F72;
    --primary-abyss:  #0E3252;
    --primary-light:  #3498DB;
    --accent:         #CC2229;
    --accent-dark:    #A81D23;
    --accent-glow:    rgba(204, 34, 41, .15);
    --white:          #FFFFFF;
    --off-white:      #F4F7FA;
    --dark:           #1a1a2e;
    --darker:         #0d0d1a;
    --text:           #2d3748;
    --text-light:     #8892a0;
    --text-muted:     #6b7a8d;
    --border:         rgba(40, 116, 166, .15);
    --border-light:   rgba(255,255,255,.08);

    --font-heading:   'Montserrat', sans-serif;
    --font-body:      'Open Sans', sans-serif;

    --header-h:       90px;
    --radius:         8px;
    --radius-lg:      16px;
    --shadow:         0 4px 24px rgba(0,0,0,.1);
    --shadow-lg:      0 16px 48px rgba(0,0,0,.18);
    --shadow-accent:  0 8px 32px rgba(204,34,41,.25);
    --transition:     .35s cubic-bezier(.4,0,.2,1);
    --transition-slow: .6s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.75;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* Section base */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-tag::before {
    content: '';
    width: 32px; height: 2px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .875rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s;
}
.btn:hover::before { left: 100%; }

.btn--accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}
.btn--accent:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(204,34,41,.35);
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.4);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.btn--outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn--outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: all var(--transition);
    background: transparent;
}
.site-header.scrolled {
    background: rgba(14, 50, 82, .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 32px rgba(0,0,0,.3);
    height: 72px;
}

.site-header .container { height: 100%; }

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

/* Brand — logo a la izquierda */
.navbar__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.navbar__brand img,
.navbar__brand .custom-logo {
    height: 64px;
    width: auto;
    transition: height var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.site-header.scrolled .navbar__brand img,
.site-header.scrolled .navbar__brand .custom-logo {
    height: 50px;
}

/* Nav menu */
.navbar__menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}
.navbar__menu > li {
    position: relative;
}
.navbar__menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    transition: color var(--transition);
    position: relative;
}
.navbar__menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 20px; right: 20px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}
.navbar__menu > li:hover > a,
.navbar__menu > li.active > a {
    color: var(--white);
}
.navbar__menu > li:hover > a::after,
.navbar__menu > li.active > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown */
.navbar__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: rgba(14, 50, 82, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.06);
    list-style: none;
}
.navbar__menu > li:hover .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.navbar__dropdown li a {
    display: block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    transition: all var(--transition);
    letter-spacing: .3px;
}
.navbar__dropdown li a:hover {
    color: var(--white);
    background: rgba(255,255,255,.06);
    padding-left: 30px;
}

/* CTA header */
.navbar__cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius) !important;
    font-size: .75rem !important;
    letter-spacing: 1px !important;
}
.navbar__cta::after { display: none !important; }
.navbar__cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

/* Hamburger */
.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}
.navbar__toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}
.navbar__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.navbar__toggle.active span:nth-child(2) { opacity: 0; }
.navbar__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Overlay gradiente profundo */
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(14,50,82,.75) 0%,
            rgba(14,50,82,.5) 40%,
            rgba(14,50,82,.7) 70%,
            rgba(13,13,26,.95) 100%
        ),
        linear-gradient(90deg,
            rgba(14,50,82,.6) 0%,
            transparent 60%
        );
}

/* Partículas / burbujas decorativas */
.hero__bubbles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.hero__bubbles span {
    position: absolute;
    bottom: -40px;
    width: 8px; height: 8px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    animation: bubbleRise 12s infinite ease-in;
}
.hero__bubbles span:nth-child(1) { left: 10%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: 0s; }
.hero__bubbles span:nth-child(2) { left: 25%; width: 10px; height: 10px; animation-duration: 10s; animation-delay: 2s; }
.hero__bubbles span:nth-child(3) { left: 40%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 4s; }
.hero__bubbles span:nth-child(4) { left: 55%; width: 12px; height: 12px; animation-duration: 11s; animation-delay: 1s; }
.hero__bubbles span:nth-child(5) { left: 70%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: 3s; }
.hero__bubbles span:nth-child(6) { left: 85%; width: 9px; height: 9px; animation-duration: 15s; animation-delay: 5s; }
.hero__bubbles span:nth-child(7) { left: 50%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: 7s; }
.hero__bubbles span:nth-child(8) { left: 15%; width: 11px; height: 11px; animation-duration: 12s; animation-delay: 6s; }

@keyframes bubbleRise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: .3; }
    100% { transform: translateY(-100vh) scale(.5); opacity: 0; }
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: var(--header-h);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(204, 34, 41, .15);
    border: 1px solid rgba(204, 34, 41, .3);
    padding: 8px 20px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff6b6b;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}
.hero__badge i { font-size: .625rem; }

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.hero__title span {
    color: var(--primary-light);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Decorative depth line */
.hero__depth-indicator {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hero__depth-indicator .depth-line {
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.3), transparent);
}
.hero__depth-indicator .depth-mark {
    font-family: var(--font-heading);
    font-size: .625rem;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    letter-spacing: 2px;
    writing-mode: vertical-lr;
    text-transform: uppercase;
}

/* ============================================================
   ABOUT / QUIÉNES SOMOS
   ============================================================ */
.about {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}
.about::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: var(--off-white);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about__image-wrapper {
    position: relative;
}
.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.about__image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.about__experience-badge {
    position: absolute;
    bottom: -24px;
    left: 30px;
    background: var(--accent);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-accent);
    z-index: 2;
}
.about__experience-badge .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}
.about__experience-badge .label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

.about__content {
    padding-right: 20px;
}
.about__text {
    font-size: 1.0625rem;
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 24px;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.about__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--off-white);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.about__feature:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(4px);
}
.about__feature i {
    color: var(--accent);
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.about__feature:hover i { color: var(--white); }
.about__feature span {
    font-family: var(--font-heading);
    font-size: .8125rem;
    font-weight: 600;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: 120px 0;
    background: var(--primary-abyss);
    position: relative;
    overflow: hidden;
}
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(40,116,166,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(204,34,41,.06) 0%, transparent 50%);
}

.services .section-tag { color: rgba(255,255,255,.5); }
.services .section-tag::before { background: var(--accent); }
.services .section-title { color: var(--white); }
.services .section-subtitle { color: rgba(255,255,255,.55); }

.services__header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}
.services__header .section-subtitle {
    margin: 0 auto;
}

.services__tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 48px;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius);
    padding: 4px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.services__tab {
    flex: 1;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.services__tab.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(40,116,166,.4);
}
.services__tab:hover:not(.active) {
    color: rgba(255,255,255,.8);
}

.services__panel {
    display: none;
    position: relative;
    z-index: 1;
}
.services__panel.active { display: block; }

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

.service-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(40,116,166,.3);
}
.service-card:hover .service-card__icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: var(--shadow-accent);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: .9rem;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    padding: 80px 0;
    background: var(--primary-dark);
    position: relative;
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary-abyss), var(--primary-dark), var(--primary-abyss));
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.15), transparent);
}

.stat-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(204, 34, 41, .15);
    border: 1px solid rgba(204, 34, 41, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
    font-size: 1.125rem;
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item__number .suffix {
    font-size: 1.75rem;
    color: var(--accent);
}

.stat-item__label {
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 120px 0;
    background: var(--off-white);
    position: relative;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact__info {
    padding-right: 20px;
}
.contact__info .section-title { margin-bottom: 16px; }
.contact__info-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact__details { display: flex; flex-direction: column; gap: 20px; }

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.contact__detail:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}
.contact__detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}
.contact__detail h4 {
    font-family: var(--font-heading);
    font-size: .875rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.contact__detail p,
.contact__detail a {
    font-size: .9rem;
    color: var(--text-muted);
}
.contact__detail a:hover { color: var(--accent); }

/* Form */
.contact__form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact__form-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact__form-title i { color: var(--accent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .9375rem;
    color: var(--text);
    background: var(--off-white);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(40,116,166,.1);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.form-submit:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--darker);
    color: rgba(255,255,255,.7);
    padding: 80px 0 0;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent), var(--primary-dark));
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer__brand img {
    max-height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.footer__brand-text {
    font-size: .9rem;
    color: rgba(255,255,255,.45);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer__social {
    display: flex;
    gap: 10px;
}
.footer__social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: .9375rem;
    transition: all var(--transition);
}
.footer__social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer__col h4 {
    font-family: var(--font-heading);
    font-size: .875rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 14px;
}
.footer__col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--accent);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}
.footer__links a {
    color: rgba(255,255,255,.45);
    font-size: .875rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
}
.footer__links a i {
    font-size: .5rem;
    color: var(--accent);
    transition: transform var(--transition);
}
.footer__links a:hover {
    color: var(--white);
    padding-left: 4px;
}
.footer__links a:hover i { transform: translateX(3px); }

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: .875rem;
}
.footer__contact-item i {
    color: var(--accent);
    margin-top: 4px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.footer__contact-item a {
    color: rgba(255,255,255,.45);
}
.footer__contact-item a:hover { color: var(--accent); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 56px;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}
.footer__bottom a { color: rgba(255,255,255,.3); }
.footer__bottom a:hover { color: var(--accent); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,.4);
    transition: all var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(37,211,102,.5);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,.3);
    animation: whatsappPulse 2s infinite;
}
@keyframes whatsappPulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 32px;
    z-index: 998;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary-dark);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.1);
    font-size: .875rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-abyss) 0%, var(--primary-dark) 100%);
    padding: 140px 0 60px;
    text-align: center;
    color: var(--white);
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent), var(--primary-dark));
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
}

/* Page content */
.page-content { padding: 80px 0; }

/* Single post */
.single-post-hero {
    background: linear-gradient(135deg, var(--primary-abyss) 0%, var(--primary-dark) 100%);
    padding: 140px 0 60px;
    text-align: center;
    color: var(--white);
}
.single-post-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    max-width: 820px;
    margin: 0 auto;
}
.post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    font-size: .875rem;
    color: rgba(255,255,255,.6);
}
.single-post-content {
    max-width: 820px;
    margin: 48px auto;
    padding: 0 24px;
    font-size: 1.0625rem;
    line-height: 1.85;
}

/* 404 */
.error-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 40px 24px;
    background: var(--primary-abyss);
    color: var(--white);
}
.error-404__number {
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.03));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.error-404__content h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 12px;
}
.error-404__content p {
    color: rgba(255,255,255,.5);
    margin-bottom: 32px;
    max-width: 480px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about__grid { grid-template-columns: 1fr; gap: 48px; }
    .about::before { display: none; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .stat-item:not(:last-child)::after { display: none; }
    .contact__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .hero__depth-indicator { display: none; }
}

@media (max-width: 768px) {
    .navbar__menu {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(14, 50, 82, .98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 80px 40px;
        z-index: 999;
    }
    .navbar__menu.active { display: flex; }
    .navbar__menu > li > a {
        font-size: 1rem;
        padding: 18px 0;
        letter-spacing: 2px;
    }
    .navbar__menu > li > a::after { display: none; }
    .navbar__dropdown {
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 20px;
    }
    .navbar__dropdown li a { padding: 10px 0; font-size: .875rem; }
    .navbar__cta { margin-top: 24px; }
    .navbar__toggle { display: flex; }

    .hero__title { font-size: clamp(2rem, 7vw, 2.75rem); }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }

    .services__grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact__form-wrapper { padding: 32px 24px; }
    .footer__grid { grid-template-columns: 1fr; gap: 40px; }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
    .about__features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { min-height: 100svh; }
    .stats__grid { grid-template-columns: 1fr; }
    .stat-item { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .stat-item:last-child { border-bottom: none; }
}
