/* ==========================================================================
   VARCAB - Estudio Jurídico | Professional Stylesheet
   ========================================================================== */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
    --color-primary: #0a5836;
    --color-primary-light: #0d6b42;
    --color-primary-dark: #073d26;
    --color-accent: #27a86c;
    --color-accent-hover: #1e8c59;
    --color-gold: #c9a84c;
    --color-gold-light: #d4b965;

    --color-bg-light: #f5f5f5;
    --color-bg-white: #ffffff;
    --color-bg-dark: #0b1a12;

    --color-text-dark: #1a1a1a;
    --color-text-medium: #4a4a4a;
    --color-text-light: rgba(255,255,255,.85);
    --color-text-muted: rgba(0,0,0,.55);

    --font-primary: "Poppins", sans-serif;
    --font-serif: "Playfair Display", serif;

    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 30px;
    --radius-xl: 50px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,.12);
    --shadow-lg: 0 15px 50px rgba(0,0,0,.18);
    --shadow-glow: 0 0 30px rgba(39,168,108,.25);

    --transition-fast: .25s ease;
    --transition-base: .4s ease;
    --transition-slow: .6s ease;

    --container-max: 1250px;
    --nav-height: 80px;
}

/* ---------- Reset & Base ---------- */
::-webkit-scrollbar { display: none; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
   -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-text-dark);
    overflow-x: hidden;
}

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

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

/* ---------- Scroll Animations ---------- */
.animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

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

/* ---------- Section Tag (small badges) ---------- */
.section-tag {
    font-size: 0.95em;
    padding: 8px 22px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.5px;
}

.section-tag--green {
    color: var(--color-primary);
    background: rgba(10,88,54,.1);
}

.section-tag--white {
    color: #fff;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(5px);
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: 2.5em;
    margin-top: 25px;
    letter-spacing: -1px;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.15;
}

/* ======================================================================
   NAVIGATION
   ====================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
max-widht: 100vw;
    display: flex;
    justify-content: center;
    border-bottom: solid 1px rgba(255,255,255,.08);
    z-index: 100;
    background: rgba(10,25,18,.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #fff;
    transition: top var(--transition-fast), background var(--transition-base);
}

nav.scrolled {
    background: rgba(10,25,18,.92);
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

nav .nav-container {
    width: 100%;
    max-width: var(--container-max);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: 1.6em;
    font-weight: 600;
    letter-spacing: 1px;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

nav .logo img {
    width: 55px;
    height: auto;
    filter: brightness(0) invert(1);
}

nav .nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
    font-size: 0.92em;
    font-weight: 400;
    cursor: pointer;
    color: rgba(255,255,255,.8);
    text-decoration: none;
}

nav .nav-link:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

nav .nav-link .nav-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-right: 8px;
    opacity: .7;
}

nav .nav-cta {
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    margin-left: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

nav .nav-cta:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

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

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

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 18, .97);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.4em;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    text-decoration: none;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,.1);
}

.navAbajo { top: var(--nav-height); }

/* ======================================================================
   HERO
   ====================================================================== */
.hero {
    width: 100%;
    min-height: 100vh;
    background: var(--color-primary);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 5;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,24,18,.3) 0%,
        rgba(10,24,18,.15) 40%,
        rgba(10,24,18,.6) 75%,
        rgba(10,24,18,.9) 100%
    );
    z-index: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 30px;
    margin-top: 60px;
}

.hero .hero-content small {
    font-size: 1em;
    padding: 10px 25px;
    border-radius: var(--radius-xl);
    color: #fff;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(5px);
    font-weight: 500;
    display: inline-block;
    letter-spacing: 1px;
}

.hero .hero-content h1 {
    font-family: var(--font-primary);
    font-size: 3.5em;
    margin-top: 30px;
    letter-spacing: -1px;
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
}

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

.hero .hero-content p {
    font-size: 1.15em;
    margin-top: 25px;
    line-height: 1.7;
    color: rgba(255,255,255,.75);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .hero-actions {
    display: flex;
    justify-content: center;
    padding-top: 35px;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

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

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
    transform: translateY(-2px);
}

.btn-dark-outline {
    background: transparent;
    color: var(--color-text-dark);
    border: 2px solid rgba(0,0,0,.2);
}

.btn-dark-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    padding-top: 35px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat {
    text-align: center;
    color: #fff;
}

.hero-stat .stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    font-family: var(--font-primary);
}

.hero-stat .stat-label {
    font-size: .85em;
    color: rgba(255,255,255,.6);
    margin-top: 4px;
    display: block;
    color: var(--color-primary);
}

.img_hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ======================================================================
   INTRO / ABOUT
   ====================================================================== */
.intro {
    width: 100%;
    background: var(--color-bg-light);
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.intro .container {
    padding: 120px 30px;
    width: 100%;
    max-width: var(--container-max);
    display: flex;
    gap: 60px;
    align-items: center;
}

.intro .dos_partes {
    width: 50%;
}

.intro .dos_partes h2 {
    font-family: var(--font-primary);
    font-size: 2.5em;
    margin-top: 20px;
    letter-spacing: -1px;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.15;
}

.intro .dos_partes p {
    font-size: 1.05em;
    margin-top: 20px;
    line-height: 1.8;
    color: var(--color-text-medium);
}

.intro .intro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.intro .intro-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--color-primary);
    font-size: .95em;
}

.intro .intro-feature svg {
    width: 20px;
    height: 20px;
    fill: var(--color-accent);
    flex-shrink: 0;
}

.intro .image-wrapper {
    width: 50%;
    position: relative;
}

.intro .image-wrapper img {
    width: 100%;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.intro .image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: rgba(10,88,54,.12);
    border-radius: var(--radius-lg);
    z-index: 1;
    transform: rotate(3deg);
}

/* ======================================================================
   SERVICIOS
   ====================================================================== */
.servicios {
    width: 100%;
    background: var(--color-bg-white);
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.servicios .container {
    padding: 120px 30px;
    width: 100%;
    max-width: var(--container-max);
}

.servicios .header_servicios {
    text-align: center;
    margin-bottom: 60px;
}

.servicios .header_servicios h3 {
    font-family: var(--font-primary);
}

.servicios .cont_servicios {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.servicios .servicio {
    padding: 45px 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,.06);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-white);
}

.servicios .servicio::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.servicios .servicio:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.servicios .servicio:hover::before {
    transform: scaleX(1);
}

.servicios .servicio img {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.servicios .servicio h5 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--color-text-dark);
    font-weight: 600;
}

.servicios .servicio p {
    font-size: .9em;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.servicios .enlace_serv {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-accent);
    font-weight: 600;
    font-size: .9em;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.servicios .enlace_serv:hover {
    gap: 12px;
}

.servicios .enlace_serv img {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    filter: invert(52%) sepia(74%) saturate(419%) hue-rotate(107deg) brightness(92%) contrast(87%);
}

/* ======================================================================
   EQUIPO
   ====================================================================== */
.equipo {
    width: 100%;
    background: var(--color-bg-light);
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.equipo .container {
    padding: 120px 30px;
    width: 100%;
    max-width: var(--container-max);
    overflow: hidden;
}

.equipo .equipo_header {
    padding: 0 30px 60px;
    text-align: center;
    width: 100%;
}

.equipo .equipo_header h5 {
    font-family: var(--font-primary);
}

.equipo .equipo_cont {
    display: flex;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap;
}

.equipo .abg {
    width: calc(33.33% - 20px);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    background: #111;
}

.equipo .abg:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.equipo .abg figure {
    aspect-ratio: 3 / 3.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.equipo .abg figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.equipo .abg:hover figure img {
    transform: scale(1.08);
}

.equipo .abg .titulo {
    position: absolute;
    bottom: 0;
    padding: 80px 24px 24px;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
}

.equipo .abg .titulo h5 {
    font-size: 1.35em;
    color: #fff;
    width: 100%;
}

.equipo .abg .titulo small {
    color: var(--color-gold);
    width: 100%;
    font-size: .9em;
}

.equipo .abg .contactar {
    height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.equipo .abg .contactar img {
    width: 18px;
    height: 18px;
}

.equipo .abg:hover .contactar {
    height: 48px;
    padding: 12px 22px;
    color: #fff;
    font-weight: 600;
    margin-top: 12px;
    border-radius: var(--radius-xl);
    background: var(--color-accent);
    font-size: .9em;
}

.equipo .abg:hover .contactar:hover {
    background: var(--color-primary);
}

.equipo .equipo_foot {
    width: 100%;
    justify-content: center;
    display: flex;
    padding-top: 60px;
}

.equipo .btn_mas_equipo {
    padding: 16px 30px;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.equipo .btn_mas_equipo:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.equipo .btn_mas_equipo img {
    width: 20px;
}

/* ======================================================================
   CLIENTES
   ====================================================================== */
.clientes {
    width: 100%;
    background: var(--color-bg-white);
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.clientes .container {
    padding: 100px 30px;
    width: 100%;
    max-width: var(--container-max);
    text-align: center;
}

.clientes .container h4 {
    font-family: var(--font-primary);
}

.clientes-track-wrapper {
    overflow: hidden;
    position: relative;
    margin-top: 50px;
}

.clientes-track-wrapper::before,
.clientes-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clientes-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-white), transparent);
}

.clientes-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-white), transparent);
}

.clientes-track {
    display: flex;
    gap: 60px;
    align-items: center;
    animation: scroll-clients 25s linear infinite;
    width: max-content;
}

.clientes-track .client-logo {
    height: 50px;
    opacity: .4;
    filter: grayscale(1);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.clientes-track .client-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

@keyframes scroll-clients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ======================================================================
   TESTIMONIOS
   ====================================================================== */
.testimonios {
    width: 100%;
    background: var(--color-primary);
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.testimonios::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    top: -100px;
    right: -100px;
}

.testimonios .container {
    padding: 120px 30px;
    width: 100%;
    max-width: var(--container-max);
    text-align: center;
}

.testimonios .section-title {
    color: #fff;
}

.testimonios-slider {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.testimonios-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonio-card {
    min-width: 100%;
    padding: 0 40px;
}

.testimonio-card .card-inner {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    border: 1px solid rgba(255,255,255,.1);
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

.testimonio-card .quote-icon {
    font-size: 5em;
    color: var(--color-gold);
    opacity: .3;
    position: absolute;
    top: 15px;
    left: 30px;
    font-family: serif;
    line-height: 1;
}

.testimonio-card .testimonial-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: rgba(255,255,255,.85);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonio-card .testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.testimonio-card .author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
}

.testimonio-card .author-info {
    text-align: left;
}

.testimonio-card .author-name {
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.testimonio-card .author-role {
    color: var(--color-gold);
    font-size: .85em;
    margin-top: 2px;
}

.testimonios-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.testimonios-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.testimonios-dots .dot.active {
    background: var(--color-gold);
    width: 30px;
    border-radius: 5px;
}

/* ======================================================================
   NOVEDADES / BLOG
   ====================================================================== */
.novedades {
    width: 100%;
    background: var(--color-bg-light);
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.novedades .container {
    padding: 120px 30px;
    width: 100%;
    max-width: var(--container-max);
}

.novedades .novedades-header {
    text-align: center;
    margin-bottom: 60px;
}

.novedades .novedades-header h4 {
    font-family: var(--font-primary);
}

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

.novedad-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(0,0,0,.05);
}

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

.novedad-card .card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.novedad-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.novedad-card:hover .card-image img {
    transform: scale(1.06);
}

.novedad-card .card-body {
    padding: 25px;
}

.novedad-card .card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: .8em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.novedad-card .card-category {
    background: rgba(10,88,54,.1);
    color: var(--color-primary);
    padding: 3px 12px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: .85em;
}

.novedad-card .card-body h5 {
    font-size: 1.15em;
    color: var(--color-text-dark);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.novedad-card .card-body p {
    font-size: .9em;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.novedad-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: .9em;
    margin-top: 15px;
    transition: gap var(--transition-fast);
}

.novedad-card .card-link:hover {
    gap: 12px;
}

.novedad-card .card-link img {
    width: 14px;
    filter: invert(52%) sepia(74%) saturate(419%) hue-rotate(107deg) brightness(92%) contrast(87%);
}

.novedades-footer {
    text-align: center;
    margin-top: 50px;
}

/* ======================================================================
   CONTACTO
   ====================================================================== */
.contacto {
    width: 100%;
    background: var(--color-bg-white);
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.contacto .container {
    padding: 120px 30px;
    width: 100%;
    max-width: var(--container-max);
    display: flex;
    gap: 60px;
}

.contacto .contacto-info {
    width: 40%;
}

.contacto .contacto-info h4 {
    font-family: var(--font-primary);
}

.contacto .contacto-info p {
    font-size: 1em;
    color: var(--color-text-muted);
    margin-top: 15px;
    line-height: 1.7;
}

.contacto-details {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contacto-detail .detail-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    background: rgba(10,88,54,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-detail .detail-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.contacto-detail h6 {
    font-size: .85em;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-bottom: 3px;
}

.contacto-detail span {
    font-weight: 600;
    font-size: .95em;
    color: var(--color-text-dark);
}

.contacto .contacto-form-wrapper {
    width: 60%;
}

.contact-form {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 45px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: .85em;
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: .95em;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: #fff;
    outline: none;
    color: var(--color-text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(39,168,108,.15);
}

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.form-group .error-msg {
    color: #e74c3c;
    font-size: .8em;
    display: none;
}

.form-submit {
    margin-top: 10px;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    font-size: 1em;
    padding: 18px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success svg {
    width: 60px;
    height: 60px;
    fill: var(--color-accent);
    margin-bottom: 15px;
}

.form-success h5 {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--color-text-muted);
}

/* ======================================================================
   FOOTER
   ====================================================================== */
.footer {
    width: 100%;
    background: var(--color-bg-dark);
    color: #fff;
    z-index: 0 !important;
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer .footer-main {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 80px 30px 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.footer .footer-brand{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 80px 30px 50px;
}

.footer .footer-brand p {
    color: rgba(255,255,255,.5);
    font-size: .9em;
    line-height: 1.7;
    margin-top: 15px;
}

.footer .footer-brand .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer .footer-brand .footer-logo img {
    width: 75px;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.footer .footer-col h6 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.footer .footer-col h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer .footer-col ul {
    list-style: none;
}

.footer .footer-col ul li {
    margin-bottom: 10px;
}

.footer .footer-col ul li a {
    color: rgba(255,255,255,.5);
    font-size: .9em;
    transition: color var(--transition-fast);
}

.footer .footer-col ul li a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 25px 30px;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85em;
    color: rgba(255,255,255,.35);
}

.footer-bottom a {
    color: rgba(255,255,255,.5);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-gold);
}

/* ======================================================================
   WHATSAPP FLOATING BUTTON
   ====================================================================== */
.whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 15px rgba(37,211,102,.4);
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
}

.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,.55);
}

.whatsapp img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: var(--color-text-dark);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: .85em;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,.6); }
}

/* ======================================================================
   PROGRESS BAR
   ====================================================================== */
.progress-bar {
    height: 4px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
}

.barra {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 0 2px 2px 0;
    transition: width 0.05s linear;
}

/* ======================================================================
   RESPONSIVE — TABLET (<=1024px)
   ====================================================================== */
@media (max-width: 1024px) {
    .hero .hero-content h1 { font-size: 2.6em; }
    .hero-stats { gap: 30px; }
    .hero-stat .stat-number { font-size: 1.8em; }

    .intro .container { gap: 40px; }

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

    .equipo .abg {
        width: calc(33.33% - 20px);
    }

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

    .contacto .container {
        flex-direction: column;
    }

    .contacto .contacto-info,
    .contacto .contacto-form-wrapper {
        width: 100%;
    }

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

/* ======================================================================
   RESPONSIVE — MOBILE (<=768px)
   ====================================================================== */
@media (max-width: 768px) {
    :root {
        --nav-height: 65px;
    }

    .hamburger { display: flex; }

    nav .nav-links,
    nav .nav-cta { display: none; }

    nav .nav-container { padding: 0 20px; }
    nav .logo { font-size: 1.3em; }
    nav .logo img { width: 40px; }

    /* Hero mobile */
    .hero .hero-content h1 { font-size: 2em; }
    .hero .hero-content p { font-size: 1em; }
    .hero .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-stats { margin-top: 40px; padding-top: 25px; }

    /* Intro mobile */
    .intro .container {
        flex-direction: column;
        padding: 80px 20px;
    }

    .intro .dos_partes,
    .intro .image-wrapper {
        width: 100%;
    }

    .intro .dos_partes h2 { font-size: 2em; }

    /* Servicios mobile */
    .servicios .container { padding: 80px 20px; }

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

    .section-title { font-size: 2em; }

    /* Equipo mobile */
    .equipo .container { padding: 80px 20px; }

    .equipo .equipo_cont {
        flex-direction: column;
    }

    .equipo .abg {
        width: 100%;
    }

    /* Novedades mobile */
    .novedades-grid {
        grid-template-columns: 1fr;
    }

    /* Contacto mobile */
    .contacto .container { padding: 80px 20px; }

    .form-row { flex-direction: column; }

    .contact-form { padding: 25px; }

    /* Footer mobile */
    .footer .footer-main {
        display: flex;
        padding: 50px 20px 30px;
        gap: 35px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-bottom {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Testimonios mobile */
    .testimonio-card { padding: 0 10px; }
    .testimonio-card .card-inner { padding: 35px 25px; }
}

/* ======================================================================
   RESPONSIVE — SMALL MOBILE (<=480px)
   ====================================================================== */
@media (max-width: 480px) {
    .hero .hero-content h1 { font-size: 1.7em; }
    .hero .hero-content small { font-size: .85em; }

    .servicios .header_servicios h3,
    .equipo .equipo_header h5,
    .section-title { font-size: 1.7em; }

    .hero-stat .stat-number { font-size: 1.5em; }
}
