* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #413C41;
    color: #F5F4F1;
    line-height: 1.5;
    overflow-x: hidden;
}

/* HEADER - NEGRO */
header {
    background-color: #0B0A07;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #F7C10A;
    padding: 0.8rem 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: auto;
    width: auto;
    max-height: 45px;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
    color: #F7C10A;
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #0B0A07;
    border-top: 2px solid #F7C10A;
    border-bottom: 2px solid #F7C10A;
    padding: 1rem;
    gap: 0.5rem;
    list-style: none;
    z-index: 999;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    color: #F5F4F1;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem;
    display: block;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.nav-links a:active,
.nav-links a:hover {
    background-color: #F7C10A;
    color: #0B0A07;
}

/* SECCIONES - CENTRADAS */
.section {
    padding: 3rem 1rem;
    border-bottom: 1px solid #524D52;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* TÍTULOS CENTRADOS */
h2 {
    font-size: 1.8rem;
    color: #F7C10A;
    margin-bottom: 1rem;
    text-align: center;
    border-left: none;
    padding-left: 0;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #F7C10A;
    border-radius: 2px;
}

h2 i {
    margin-right: 0.5rem;
    color: #F7C10A;
    font-size: 2rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #F7C10A;
    text-align: center;
}

.sub {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #C4C0C4;
    text-align: center;
}

/* FONDOS REPRESENTATIVOS POR SECCIÓN */
#historia {
    background: linear-gradient(135deg, #413C41 0%, #373339 100%);
}

#branding {
    background: linear-gradient(135deg, #3A363C 0%, #2F2C31 100%);
}

#materiales {
    background: linear-gradient(135deg, #413C41 0%, #3A363C 100%);
}

#web {
    background: linear-gradient(135deg, #413C41 0%, #3A363C 100%);
}

#proceso {
    background: linear-gradient(135deg, #373339 0%, #2F2C31 100%);
}

#contacto {
    background: linear-gradient(135deg, #2F2C31 0%, #252328 100%);
}

/* HERO CON FOCO E ILUMINACIÓN */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0B0A07 0%, #1A180E 100%);
}

.hero-foco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 450px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    animation: focoPulsa 4s ease-in-out infinite;
}

.foco-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(247, 193, 10, 0.5));
}

@keyframes focoPulsa {
    0% {
        transform: translate(-50%, -50%) scale(0.97);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.03);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.97);
        opacity: 0.7;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(247, 193, 10, 0.35) 0%, rgba(247, 193, 10, 0) 65%);
    transform: translate(-50%, -50%);
    animation: brilloProfundo 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 193, 10, 0.15) 0%, transparent 75%);
    transform: translate(-50%, -50%);
    animation: hazProfundo 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes brilloProfundo {
    0% {
        opacity: 0.6;
        background: radial-gradient(circle at 45% 50%, rgba(247, 193, 10, 0.3) 0%, rgba(247, 193, 10, 0) 65%);
    }
    50% {
        opacity: 1;
        background: radial-gradient(circle at 55% 50%, rgba(247, 193, 10, 0.45) 0%, rgba(247, 193, 10, 0) 65%);
    }
    100% {
        opacity: 0.6;
        background: radial-gradient(circle at 45% 50%, rgba(247, 193, 10, 0.3) 0%, rgba(247, 193, 10, 0) 65%);
    }
}

@keyframes hazProfundo {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============ IMAGEN QUE REEMPLAZA EL TEXTO DEL HERO ============ */
.hero-imagen-texto {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5));
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes responsivos para la imagen */
@media (max-width: 768px) {
    .hero-imagen-texto {
        max-width: 90%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-imagen-texto {
        max-width: 95%;
    }
}

/* ESTADÍSTICAS */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    background-color: #4A454A;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px solid #F7C10A;
    font-weight: bold;
    color: #F5F4F1;
    transition: all 0.3s;
}

.stat:hover {
    transform: translateY(-3px);
    border-color: #F7C10A;
    box-shadow: 0 5px 15px rgba(247, 193, 10, 0.2);
}

.stat i {
    color: #F7C10A;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* BOTONES */
.btn {
    display: inline-block;
    background-color: #F7C10A;
    color: #0B0A07;
    padding: 0.8rem 2rem;
    margin-top: 0.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(247, 193, 10, 0.2);
    text-shadow: none;
}

.btn:hover {
    background-color: #D4A30A;
    transform: scale(1.02);
}

/* IDENTIDAD CORPORATIVA + MKT DIGITAL - SECCIÓN UNIFICADA */
.branding-container {
    max-width: 1100px;
    margin: 0 auto;
}

.branding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.branding-preguntas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.pregunta-card {
    background-color: #4A454A;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #F7C10A;
    font-weight: 600;
    color: #F5F4F1;
    transition: all 0.3s;
}

.pregunta-card i {
    color: #F7C10A;
    margin-right: 0.5rem;
}

.pregunta-card:hover {
    transform: translateY(-3px);
    border-color: #F7C10A;
    background-color: #F7C10A20;
}

.destacado {
    font-size: 1.1rem;
    color: #F7C10A;
    margin: 1.5rem 0;
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    background-color: rgba(247, 193, 10, 0.1);
    border-radius: 60px;
    display: inline-block;
    width: auto;
}

/* GRID SERVICIOS BRANDING */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #4A454A;
    border: 1px solid #5D575D;
    padding: 1.2rem;
    text-align: center;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #F5F4F1;
    transition: all 0.3s;
}

.service-card i {
    color: #F7C10A;
    font-size: 2rem;
    display: block;
    margin-bottom: 0.8rem;
}

.service-card:hover {
    border-color: #F7C10A;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(247, 193, 10, 0.15);
}

/* PAPELERÍA DIGITAL */
.papeleria {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #4A454A;
    border-radius: 20px;
    text-align: center;
}

.papeleria h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.papeleria h3 i {
    margin-right: 0.5rem;
}

.papeleria ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.papeleria li {
    background-color: #5D575D;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.papeleria li i {
    color: #F7C10A;
    font-size: 0.9rem;
}

.papeleria li:hover {
    background-color: #F7C10A;
    color: #0B0A07;
}

.papeleria li:hover i {
    color: #0B0A07;
}

/* SECCIÓN MKT DIGITAL - DENTRO DE BRANDING */
.mkt-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #F7C10A;
}

.mkt-section h2 {
    margin-bottom: 1rem;
}

.mkt-section p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    color: #C4C0C4;
}

/* OFERTAS MKT */
.offer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.offer span {
    background-color: #F7C10A;
    color: #0B0A07;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.offer span i {
    font-size: 1.2rem;
}

.offer span:hover {
    transform: scale(1.02);
    background-color: #D4A30A;
}

/* MATERIALES BULB - MÁS VISIBLE */
.materiales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.material-card {
    background: linear-gradient(135deg, #4A454A 0%, #3A363C 100%);
    border: 2px solid #F7C10A;
    padding: 1.5rem;
    text-align: center;
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.material-card i {
    font-size: 2.5rem;
    color: #F7C10A;
    margin-bottom: 0.8rem;
    display: block;
}

.material-card span {
    font-weight: 600;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(247, 193, 10, 0.2);
}

/* SERVICIOS EXTRAS */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.extra-card {
    background: #4A454A;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.extra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(247, 193, 10, 0.15);
}

.extra-icon i {
    font-size: 2.5rem;
    color: #F7C10A;
    margin-bottom: 1rem;
    display: inline-block;
}

.extra-card h3 {
    color: #F7C10A;
    margin-bottom: 1rem;
}

.extra-card ul {
    list-style: none;
    padding: 0;
}

.extra-card li {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.extra-card li i {
    color: #F7C10A;
    font-size: 0.9rem;
    width: 20px;
}

/* HIGHLIGHT CARD */
.highlight-card {
    background: linear-gradient(135deg, #F7C10A 0%, #D4A30A 100%);
    color: #0B0A07;
    padding: 1.8rem;
    border-radius: 24px;
    margin-top: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 193, 10, 0.3);
}

.highlight-card h3 {
    color: #0B0A07;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.9rem;
    color: #3A3000;
}

/* STEPS PROCESO - CORREGIDO (UNO AL LADO DEL OTRO) */
.steps {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step {
    background-color: #4A454A;
    border: 1px solid #5D575D;
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s;
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.step i {
    color: #F7C10A;
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.8rem;
}

.step strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #F5F4F1;
}

.step small {
    font-weight: normal;
    color: #C4C0C4;
    font-size: 0.75rem;
    display: block;
}

.step:hover {
    border-color: #F7C10A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 193, 10, 0.15);
}

/* CONTACTO */
.contact-info {
    background-color: #4A454A;
    padding: 1.5rem;
    border-radius: 20px;
    margin: 1.5rem 0;
    border-left: 4px solid #F7C10A;
    word-break: break-word;
    text-align: center;
}

.contact-info p {
    margin: 0.8rem 0;
    font-size: 0.95rem;
    color: #F5F4F1;
}

.contact-info i {
    color: #F7C10A;
    width: 30px;
    font-size: 1.2rem;
}

.contact-info a {
    color: #F7C10A;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #D4A30A;
}

/* BOTÓN GOOGLE MAPS */
.maps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #F7C10A;
    color: #0B0A07 !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s;
    font-size: 1rem;
}

.maps-btn i {
    color: #0B0A07 !important;
    font-size: 1.2rem;
}

.maps-btn:hover {
    background-color: #D4A30A;
    transform: scale(1.02);
}

/* REDES SOCIALES */
.social-section {
    text-align: center;
    margin: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.social-btn i {
    font-size: 1.2rem;
}

.whatsapp {
    background-color: #25D366;
    color: white;
}

.whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.02);
}

.facebook {
    background-color: #1877F2;
    color: white;
}

.facebook:hover {
    background-color: #0E5BCF;
    transform: scale(1.02);
}

.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    color: white;
}

.instagram:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.clientes {
    font-size: 0.85rem;
    text-align: center;
    background: #F7C10A10;
    padding: 0.8rem;
    border-radius: 30px;
    color: #C4C0C4;
    border: 1px solid #5D575D;
    margin-top: 1.5rem;
}

footer {
    background-color: #0B0A07;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #F7C10A;
    color: #C4C0C4;
    font-size: 0.8rem;
}

.footer-small {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #8A858A;
}

.dark {
    background-color: #373339;
}

/* ============ VIDEO DE FONDO PARA SERVICIOS EXTRAS ============ */
.video-section {
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(2px);
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
}

/* Tarjetas transparentes para que se vea el video */
.video-section .extra-card {
    background: rgba(74, 69, 74, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(247, 193, 10, 0.3);
    transition: all 0.3s ease;
}

.video-section .extra-card:hover {
    background: rgba(74, 69, 74, 0.85);
    border: 1px solid rgba(247, 193, 10, 0.8);
    backdrop-filter: blur(12px);
    transform: translateY(-5px);
}

/* Ajuste para el título en la sección con video */
.video-section h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-section h2 i {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============ IMAGEN DE FONDO PARA SECCIÓN WEB (digital.png) ============ */
.web-section {
    position: relative;
    overflow: hidden;
}

.web-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(3px);
    opacity: 0.5;
}

.web-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 60, 65, 0.7) 0%, rgba(58, 54, 60, 0.8) 100%);
    z-index: 1;
}

.web-content {
    position: relative;
    z-index: 2;
}

/* Tarjeta destacada en sección web (transparente) */
.web-section .highlight-card {
    background: rgba(247, 193, 10, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(247, 193, 10, 0.5);
}

.web-section .highlight-card:hover {
    background: rgba(247, 193, 10, 0.95);
    backdrop-filter: blur(12px);
}

/* ============ RESPONSIVE ============ */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        border: none;
        padding: 0;
        gap: 1.2rem;
        background-color: transparent;
    }

    .nav-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .offer {
        flex-direction: row;
        justify-content: center;
    }

    h2 {
        font-size: 2.2rem;
    }

    .logo-img {
        max-height: 55px;
        max-width: 200px;
    }
}

@media (max-width: 767px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        max-width: 100%;
    }
    
    .bg-video {
        filter: blur(1px);
        opacity: 0.6;
    }
    
    .video-section .extra-card {
        background: rgba(74, 69, 74, 0.85);
        backdrop-filter: blur(6px);
    }
    
    .bg-image {
        filter: blur(2px);
        opacity: 0.4;
    }
}

@media (max-width: 380px) {
    .logo-img {
        max-height: 35px;
        max-width: 120px;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-foco {
        max-width: 280px;
    }

    .stats {
        gap: 1rem;
    }

    .stat {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Si el video no carga, mantener el fondo original */
.no-video .video-background {
    display: none;
}

.no-video .video-section .extra-card {
    background: #4A454A;
    backdrop-filter: none;
}

/* ============ CATÁLOGO FLOTANTE PARA MATERIALES BULB ============ */
.material-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.material-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 20px;
}

/* Efecto hover en desktop */
.material-card:hover .material-preview {
    opacity: 0.85;
}

.material-card:hover i,
.material-card:hover span {
    position: relative;
    z-index: 2;
    color: #F7C10A;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(247, 193, 10, 0.3);
}

/* Fondo oscuro semi-transparente al hacer hover para mejor legibilidad */
.material-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 20px;
}

.material-card i,
.material-card span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Modal para móvil (click) */
.material-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.material-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(247, 193, 10, 0.3);
}

.modal-title {
    color: #F7C10A;
    font-size: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #F7C10A;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
}

.modal-timer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #F5F4F1;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 20px;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .material-card .material-preview {
        opacity: 0;
    }
    
    .material-card:active .material-preview {
        opacity: 0;
    }
}

/* ============ MATERIALES BULB - COMPACTO ============ */
.materiales-section {
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: 2rem 0;
    background-color: #2F2C31;
}

/* Fondo de sección atenuado */
.materiales-fondo-seccion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
    z-index: 0;
}

/* Atenuado del fondo */
.materiales-fondo-seccion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.materiales-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* TÍTULO - más compacto */
.materiales-header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 1rem 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1rem auto;
}

.materiales-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.materiales-header h2 i {
    font-size: 1.5rem;
}

.materiales-header h2::after {
    height: 2px;
    width: 40px;
    bottom: -5px;
}

.materiales-header .sub {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* CUADRO CENTRAL - tamaño reducido */
.materiales-cuadro-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem auto;
    padding: 0.5rem;
    max-width: 500px;
    width: 80%;
    min-height: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(247, 193, 10, 0.15);
}

.imagen-central {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

/* BOTONES - más compactos */
.materiales-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.material-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(247, 193, 10, 0.4);
    padding: 0.4rem 1rem;
    text-align: center;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.material-card i {
    font-size: 0.85rem;
    color: #F7C10A;
    margin: 0;
}

.material-card span {
    font-weight: 600;
    font-size: 0.7rem;
    color: #F5F4F1;
    white-space: nowrap;
}

/* Tarjeta activa */
.material-card.active {
    border: 1px solid #F7C10A;
    background: rgba(247, 193, 10, 0.25);
    box-shadow: 0 0 10px rgba(247, 193, 10, 0.3);
    transform: translateY(-1px);
}

/* Hover en desktop */
@media (min-width: 769px) {
    .material-card:hover {
        border: 1px solid #F7C10A;
        background: rgba(247, 193, 10, 0.2);
        transform: translateY(-1px);
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .materiales-header {
        padding: 0.8rem 1rem;
        max-width: 90%;
        margin-bottom: 0.8rem;
    }
    
    .materiales-header h2 {
        font-size: 1.2rem;
    }
    
    .materiales-header .sub {
        font-size: 0.7rem;
    }
    
    .materiales-cuadro-imagen {
        max-width: 90%;
        margin: 0.5rem auto;
    }
    
    .imagen-central {
        max-height: 150px;
    }
    
    .materiales-grid {
        gap: 0.4rem;
        margin-top: 0.8rem;
    }
    
    .material-card {
        padding: 0.35rem 0.8rem;
    }
    
    .material-card i {
        font-size: 0.75rem;
    }
    
    .material-card span {
        font-size: 0.65rem;
    }
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 480px) {
    .material-card span {
        font-size: 0.6rem;
    }
    
    .material-card i {
        font-size: 0.7rem;
    }
    
    .imagen-central {
        max-height: 120px;
    }
}

/* Ajuste para pantallas grandes (pero sin exagerar) */
@media (min-width: 1200px) {
    .materiales-cuadro-imagen {
        max-width: 550px;
    }
    
    .imagen-central {
        max-height: 220px;
    }
}

/* ============ AJUSTE CONTACTO MÁS COMPACTO ============ */
#contacto .contact-info {
    margin-bottom: 1rem;
}

#contacto .social-section {
    margin: 1rem 0;
}

#contacto .social-links {
    margin-top: 0.5rem;
}