/* ==========================================================================
   CSS GENERAL - Rediseño Cubo Rotulación y Diseño
   ========================================================================== */

:root {
    /* Paleta de Colores */
    --color-primary: #00205b;       /* Azul marino corporativo Cubo */
    --color-primary-light: #0d3780; /* Azul marino más claro */
    --color-accent: #ff6805;        /* Naranja industrial vibrante (Acento) */
    --color-accent-light: #ff8533;  /* Naranja claro para hovers */
    --color-text: #2f3e53;          /* Texto principal oscuro */
    --color-text-muted: #64748b;    /* Texto secundario atenuado */
    --color-bg: #ffffff;            /* Fondo primario */
    --color-bg-alt: #f8fafc;        /* Fondo secundario claro */
    --color-bg-dark: #000c22;       /* Fondo ultra oscuro (Hero, Contacto) */
    --color-glass-bg: rgba(255, 255, 255, 0.85); /* Glassmorphism claro */
    --color-glass-border: rgba(255, 255, 255, 0.4);
    
    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Efectos y Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 32, 91, 0.04);
    --shadow-md: 0 10px 20px rgba(0, 32, 91, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 32, 91, 0.1);
    --shadow-accent: 0 10px 25px rgba(255, 104, 5, 0.35);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Estilos de Reseteo & Base
   ========================================================================== */

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

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Componentes Reutilizables (Botones y Secciones)
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 7rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 650px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

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

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 104, 5, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color-primary);
    transform: translateY(-3px);
    border-color: #ffffff;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Header & Navbar (Sticky Glassmorphism)
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.sticky {
    padding: 0.75rem 0;
    background-color: var(--color-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-glass-border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.header.sticky .logo img {
    height: 42px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    padding: 0.5rem 0;
}

.header.sticky .nav-link {
    color: var(--color-text);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent) !important;
    font-weight: 600;
}

.btn-nav {
    background-color: var(--color-accent);
    color: #ffffff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-sm);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
}

/* Nav Toggle (Hamburgo) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.header.sticky .nav-toggle {
    color: var(--color-primary);
}

/* ==========================================================================
   Hero Section (Carrusel & Textos)
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slider .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 104, 5, 0.15);
    border: 1px solid rgba(255, 104, 5, 0.3);
    color: var(--color-accent);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
}

.mouse-icon {
    display: block;
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse-icon .wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* ==========================================================================
   Services Section (Grid & Hover 3D Effects)
   ========================================================================== */

.services {
    background-color: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 32, 91, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 104, 5, 0.15);
}

.service-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: rgba(0, 32, 91, 0.04);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   About Section & Tabs (Nosotros & Directrices)
   ========================================================================== */

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Stack de Imágenes Asimétricas */
.about-image-side {
    position: relative;
    padding-bottom: 8%;
}

.image-stack {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.image-stack-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid #ffffff;
}

.image-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-stack-item:hover img {
    transform: scale(1.05);
}

.image-stack-item-top {
    grid-column: 1 / span 9;
    grid-row: 1;
    z-index: 2;
    aspect-ratio: 4/3;
}

.image-stack-item-bottom {
    grid-column: 4 / span 9;
    grid-row: 1;
    margin-top: 30%;
    z-index: 1;
    aspect-ratio: 4/3;
}

.about-content-side {
    display: flex;
    flex-direction: column;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Tabs */
.tabs-container {
    margin-top: 2rem;
    border: 1px solid rgba(0, 32, 91, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(0, 32, 91, 0.08);
    background-color: #ffffff;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
}

.tab-btn:hover {
    color: var(--color-primary);
    background-color: rgba(0, 32, 91, 0.02);
}

.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
    animation: fade-in 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Gallery Section (Filtro CSS & Lightbox Premium)
   ========================================================================== */

.gallery {
    background-color: var(--color-bg);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background-color: var(--color-bg-alt);
    border: 1px solid rgba(0, 32, 91, 0.06);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    min-height: 400px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 32, 91, 0.95), rgba(0, 32, 91, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: var(--transition);
    color: #ffffff;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.item-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.35rem;
    letter-spacing: 0.1em;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.zoom-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.gallery-item:hover .zoom-icon {
    color: #ffffff;
    transform: scale(1.1);
}

/* Ocultar elementos filtrados mediante clases de escala y opacidad */
.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Contacto Section & Floating Labels (Formularios)
   ========================================================================== */

.contact {
    background-color: var(--color-bg-dark);
    color: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 4.5rem;
    align-items: center;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
}

.contact-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-info-item:hover .info-icon {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: var(--shadow-accent);
}

.info-text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-text a {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
}

.info-text a:hover {
    color: var(--color-accent);
}

/* Enlaces de Redes Sociales */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

/* Formulario con Etiquetas Flotantes */
.contact-form-side {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 2.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: var(--transition);
}

/* Animación de la barra y label flotante */
.form-bar {
    position: relative;
    display: block;
    width: 100%;
}

.form-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.form-group input:focus ~ .form-bar::before,
.form-group textarea:focus ~ .form-bar::before {
    width: 100%;
    left: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: transparent;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Feedback de envío de formulario */
.form-feedback {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.form-feedback.show {
    padding: 0.75rem;
    max-height: 100px;
    opacity: 1;
    margin-top: 1.5rem;
}

.form-feedback.success {
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.form-feedback.error {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: #000816;
    color: rgba(255, 255, 255, 0.5);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Lightbox Modal (Pantalla Completa)
   ========================================================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 8, 22, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    backdrop-filter: blur(10px);
}

.lightbox-modal.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.5rem;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-arrow:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-content {
    max-width: 80vw;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox-modal.show .lightbox-content img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-caption {
    text-align: center;
    color: #ffffff;
    animation: fade-in 0.6s ease;
}

.lightbox-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.25rem;
}

.lightbox-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
}

.whatsapp-tooltip {
    background-color: #ffffff;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.825rem;
    font-weight: 600;
    margin-right: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    white-space: nowrap;
    border-left: 3px solid #2ecc71;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: #2ecc71;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
    transition: var(--transition);
    position: relative;
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: whatsapp-pulse 1.8s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.08) rotate(8deg);
    background-color: #27ae60;
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.5);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* ==========================================================================
   Efectos de Scroll (Reveal on Scroll)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* delay clases para revelar secuencialmente */
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.45s; }

/* ==========================================================================
   Diseño Responsivo (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-side {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.125rem;
    }
    
    /* Navbar móvil colapsable */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem 1.5rem;
        display: none;
        box-shadow: var(--shadow-md);
        animation: slide-down 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .nav-link {
        font-size: 1.15rem;
        color: #ffffff !important;
        display: block;
        width: 100%;
    }
    
    .btn-nav {
        display: inline-block;
        text-align: center;
        width: auto;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .contact-form-side {
        padding: 2rem;
    }
    
    .lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .tabs-content {
        padding: 1.25rem;
    }
    
    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .contact-form-side {
        padding: 1.5rem 1rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en pantallas muy pequeñas */
    }
}
