/* --- Variables Globales y Paleta de Colores --- */
:root {
    --color-bg: #070709; /* Negro profundo */
    --color-bg-alt: #0F0F12;
    --color-text: #f0f0f0;
    --color-text-light: #CCCCCC;
    --color-text-dim: #9ca3af;
    --color-primary: #f60000; /* Rojo vibrante de Lautring */
    --color-primary-hover: #c40000;
    --color-border: #333333;

    /* Glassmorphism */
    --glass-bg: rgba(18, 18, 22, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Tipografías */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

strong, b {
    color: var(--color-primary);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Fondos Abstractos Brillantes --- */
.bg-shape {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    max-width: 100vw;
    overflow: hidden;
}
.bg-shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(246, 0, 0, 0.4) 0%, transparent 60%);
    opacity: 0.25;
}
.bg-shape-2 {
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(246, 0, 0, 0.15) 0%, transparent 70%);
}

/* --- Header & Navegación --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 7, 9, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 0;
}

/* Grupo derecho: hamburguesa + botón CTA siempre juntos */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.logo-icon {
    background: var(--color-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a:hover {
    color: white;
}
.highlight-link {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

/* Dropdown Submenu */
.dropdown {
    position: relative;
}

.dropdown-icon {
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f1012;
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-primary);
    border-radius: 0 0 12px 12px;
    padding: 0.8rem 0;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    list-style: none;
    backdrop-filter: blur(16px);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-dim) !important;
    font-size: 0.85rem !important;
    transition: var(--transition-smooth);
    text-align: left;
    white-space: nowrap;
}

.mobile-nav-icon {
    display: none;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.8;
}

@media (max-width: 968px) {
    .mobile-nav-icon {
        display: block;
    }
}

.dropdown-item-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.dropdown-menu li a:hover .dropdown-item-icon {
    opacity: 1;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white !important;
    padding-left: 1.8rem;
}

/* Responsive Mobile Dropdown */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        opacity: 0;
        visibility: hidden;
        background: rgba(7, 7, 9, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        overflow: hidden;
        transition: all var(--transition-smooth);
        backdrop-filter: blur(20px);
        z-index: 99;
    }

    .nav-links.active {
        height: calc(100vh - 80px);
        opacity: 1;
        visibility: visible;
        padding: 2rem;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1.2rem 1.5rem;
        justify-content: flex-start;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .dropdown.active .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        transform: none !important;
        max-height: 400px;
        padding: 0.5rem 0;
    }

    .dropdown-menu li a {
        text-align: left;
        padding: 0.8rem 1.5rem;
        font-size: 1rem !important;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        margin: 6px 1.5rem;
        justify-content: flex-start;
    }

    .dropdown-icon {
        display: none;
    }
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex-shrink: 0;
}
.mobile-menu-btn svg {
    stroke: white;
    transition: var(--transition-smooth);
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-body);
}
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.6rem 1.4rem;
    border: none;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 0, 0, 0.4);
}
.btn-outline {
    background-color: transparent;
    color: white;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--glass-border);
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Efecto en botones (Alternativa Visual) */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1; /* Necesario para que el pseudo-elemento :before no oculte el texto */
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #E50000;
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    gap: 2.5rem;
}

.hero-content {
    flex: 1.4;
    max-width: 750px;
    animation: fadeUp 0.8s ease forwards;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(246, 0, 0, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(246, 0, 0, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

/* --- Elementos Visuales Decorativos (Cards Flotantes) --- */
.hero-visual {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
    width: 250px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(246, 0, 0, 0.4);
    box-shadow: 0 30px 60px rgba(246, 0, 0, 0.15);
}

.card-offset {
    margin-left: 150px;
}

.stat h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.stat h3::after {
    content: '.';
    color: var(--color-primary);
}
.stat p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Section: ¿Quiénes Somos? --- */
.quienes-somos-section {
    margin-top: 40px; /* Reducido de 4rem para acortar el gap con el Hero */
    margin-bottom: 4rem;
}

.quienes-somos-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    transition: var(--transition-smooth);
}

.quienes-somos-text {
    flex: 1;
    min-width: 300px;
}

.quienes-somos-icon {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.quienes-somos-icon:hover {
    transform: scale(1.05) rotate(2deg);
}

.quienes-somos-icon svg {
    transition: filter 0.3s ease;
    filter: drop-shadow(0 10px 40px rgba(246, 0, 0, 0.15));
}

.quienes-somos-icon:hover svg {
    filter: drop-shadow(0 15px 50px rgba(246, 0, 0, 0.25));
}

/* Desktop: Icono grande */
@media (min-width: 1024px) {
    .quienes-somos-icon svg {
        width: 300px;
        height: 300px;
    }
}

/* Tablet: Icono mediano */
@media (min-width: 640px) and (max-width: 1023px) {
    .quienes-somos-icon svg {
        width: 220px;
        height: 220px;
    }
}

/* Mobile: Mantener pequeño (NO CAMBIAR) */
@media (max-width: 639px) {
    .quienes-somos-icon svg {
        width: 100px;
        height: 100px;
    }
}

/* --- Animaciones Keyframes --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Base Sections --- */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--color-text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Services Grid --- */
.services-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a0000 100%);
    position: relative;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-top: 4rem;
    padding: 6rem 0; /* Espacio interno consistente */
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease; /* Animar tarjetas al hover */
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: #F60000;
    box-shadow: 0 16px 40px rgba(246, 0, 0, 0.2);
}

.service-icon {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    min-width: 64px; /* Asegurar ancho mínimo */
    background: rgba(246, 0, 0, 0.08); /* Fondo rojo sutil */
    border-radius: 14px;
    border: 1px solid rgba(246, 0, 0, 0.2);
}
.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
}

.service-desc {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

/* Card buttons */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

/* --- Mejoras de Escritorio (Desktop) para Servicios --- */
@media (min-width: 969px) {
    /* ✓ Las 4 tarjetas deben estar centradas y con gap de 20px entre ellas */
    .services-grid {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    /* ✓ Usa flexbox/grid para que las tarjetas tengan alto igual */
    .service-card {
        display: flex;
        flex-direction: column;
        flex: 1; /* Ocupan espacio equivalente */
    }
    
    /* ✓ TODOS los botones deben estar a la misma altura (al bottom de cada tarjeta) */
    .card-actions {
        margin-top: auto; 
    }
}
.btn-micro {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
}
.btn-text {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.btn-text:hover {
    color: white;
}

/* --- Invitaciones Section --- */
.invitaciones-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(20,20,24,1) 0%, rgba(7,7,9,1) 100%);
}

.invitaciones-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.invitaciones-text {
    flex: 1;
}
.invitaciones-text .section-title {
    text-align: left;
}
.invitaciones-text .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-bottom: 2rem;
}

.badge-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.event-list {
    list-style: none;
    margin-bottom: 2rem;
}
.event-list li {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.list-icon {
    color: var(--color-primary);
    background: rgba(246, 0, 0, 0.1);
    padding: 6px;
    border-radius: 8px;
    width: 32px;
    height: 32px;
}
.margin-top {
    margin-top: 1rem;
}

.invitaciones-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-card {
    background: white;
    color: #111;
    border-radius: 20px;
    width: 300px;
    height: 400px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: rotate(3deg);
    transition: var(--transition-smooth);
}
.mockup-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.mockup-header {
    background: #f8f9fa;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #333;
}
.mockup-body {
    padding: 2.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #fdf5f5 100%);
}
.boda-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}
.boda-date {
    color: #777;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mockup-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.feat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: white;
    padding: 0.4rem 0.6rem;
    border-radius: 30px;
    font-size: 0.70rem;
    color: #555;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.feat svg {
    color: var(--color-primary);
}
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-small:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.btn-primary.btn-small {
    color: white;
}

/* --- Footer --- */
.footer {
    background: #000;
    padding: 5rem 0 2rem;
    border-top: 2px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--color-text-dim);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-contact h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Fila de 2 columnas en el formulario de contacto */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

select option {
    background-color: #ffffff;
    color: #333333;
}
select option:checked {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* --- Gracias Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.thanks-modal {
    background: #0f1012;
    border: 2px solid var(--color-primary);
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .thanks-modal {
    transform: scale(1);
}

.thanks-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.thanks-modal h3 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.thanks-modal p {
    color: var(--color-text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-close-modal {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(246, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    padding-bottom: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    line-height: 1;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.legal-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: white;
}

.legal-divider {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* --- Ticker Marcas Creadas --- */
.brands-ticker {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column; /* Stack the heading and track vertically */
    margin-top: 0;
    margin-bottom: 0;
}
.brands-ticker::before, .brands-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.brands-ticker::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
.brands-ticker::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding-left: 5rem;
    animation: scrollTicker 30s linear infinite;
    white-space: nowrap;
}
.ticker-track img {
    height: 70px;
    width: 180px;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}
.ticker-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}
@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- Portafolio / Galería --- */
.gallery-section {
    background-color: var(--color-bg);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    background: #111;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Pantallas Responsivas --- */
@media (max-width: 992px) {
    .invitaciones-content {
        flex-direction: column;
        text-align: center;
    }
    .invitaciones-text .section-title,
    .invitaciones-text .section-subtitle {
        text-align: center;
        margin: 0 auto 2rem auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-desc {
        margin: 1rem auto;
    }
    .footer-logo {
        justify-content: center;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .quienes-somos-section {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
    .quienes-somos-box {
        padding: 2.5rem 1.5rem;
        flex-direction: column-reverse; /* El icono va arriba del texto */
        text-align: center;
    }
    .quienes-somos-icon {
        margin-bottom: -1rem;
    }
    .footer-logo {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        flex-direction: row;
        margin-top: 2rem;
        flex-wrap: wrap;
    }
    .card-offset {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .services-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
        margin-top: 0; /* Pegado a la franja blanca */
        margin-bottom: 0;
        border-top: none; /* Sin línea separadora en móvil */
    }
    .section-header {
        margin-bottom: 2rem; /* Reduce espacio entre subtítulo y tarjetas */
    }
    .invitaciones-section {
        margin-top: 0;
        padding-top: 3.5rem;
        margin-bottom: 0;
        padding-bottom: 4rem;
    }
    .hero {
        padding-top: 120px;
        padding-bottom: 1.5rem;
    }
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
    }
    .badge {
        margin-bottom: 0.5rem;
    }
    .hero-subtitle {
        margin-bottom: 0;
    }
    .hero-services {
        margin-top: 0.5rem;
        margin-bottom: 2.5rem;
        justify-content: center;
    }
    .quienes-somos-section {
        margin-top: 1.5rem; /* Acercar la caja al botón de arriba */
    }
    .mobile-menu-btn {
        display: flex;
    }
    .navbar .btn {
        flex-shrink: 0; /* El botón CTA nunca se encoge */
    }
    .navbar-right {
        gap: 4px; /* exactamente 4px entre hamburguesa y botón CTA */
    }
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(7, 7, 9, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        border-bottom: 1px solid var(--color-border);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-200%);
        transition: transform 0.4s ease, visibility 0.4s ease;
        z-index: -1;
        text-align: center;
        visibility: hidden;
        overflow: hidden;
    }
    .nav-links.active {
        transform: translateY(0);
        visibility: visible;
    }
    .navbar {
        position: relative;
    }
    .navbar .btn-primary {
        margin-left: auto;
    }
    .hero-visual {
        display: none; 
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-large {
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding-top: 1.5rem;
        padding-bottom: 0.6rem;
    }
    .footer-bottom p,
    .footer-bottom .legal-links {
        line-height: 1;
        margin: 0;
        text-align: center;
    }
    .form-row {
        grid-template-columns: 1fr; /* En móvil se apilan verticalmente */
    }
}

/* ===== Hero: chips de servicios ===== */
.hero-services {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 0.5rem;
    padding: 0;
}
.hero-services li {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.45rem 1rem;
}
.hero-services li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ===== Botón flotante de WhatsApp (global) ===== */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1000;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #F60000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: waPulse 2.6s infinite;
}
.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(246,0,0,0.5);
    animation: none;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse {
    0%   { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(246,0,0,0.55); }
    70%  { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 16px rgba(246,0,0,0); }
    100% { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(246,0,0,0); }
}
@media (max-width: 768px) {
    .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
    .wa-float svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-float { animation: none; }
}

/* ===== Checkbox de consentimiento (Política + Términos) ===== */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.4rem 0 1rem;
    text-align: left;
}
.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.form-consent label {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* ===== Fix zoom automático iOS en inputs (font-size < 16px dispara zoom) ===== */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}
