/* Reseteo Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    background-color: #ffffff;
    color: #1e293b;
}

/* Header Fijo */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.logo span {
    color: #0284c7;
}

.nav a {
    color: #475569;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #0284c7;
}

.btn-nav {
    background-color: #0284c7;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #475569;
    background-color: #f1f5f9;
    margin-left: 14px !important;
    transition: all 0.25s ease;
    text-decoration: none;
    vertical-align: middle;
}

.nav-instagram:hover {
    color: #ffffff !important;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 36, 159, 0.35);
}

.nav-instagram svg {
    fill: currentColor;
    transition: transform 0.25s ease;
}

.nav-instagram:hover svg {
    transform: scale(1.1);
}

/* Carrusel Container */
.hero-container {
    margin-top: 60px;
    height: 85vh;
    width: 100%;
    position: relative;
    background-color: #0f172a;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #e2e8f0;
    text-align: center;
}

.btn-primary {
    background-color: #0284c7;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0369a1;
}

/* Imágenes de fondo para el Carrusel vinculadas a Pantallas LED */

/* Slide 1: Pantallas LED Transparentes / Vidrieras */
.slide-1 { 
    background-image: url('Imagen pantalla transparente vidriera 1.jpeg'); 
}

/* Slide 2: Pantallas LED para Salones y Eventos */
.slide-2 { 
    background-image: url('Imagen salon.jpg'); 
}

/* Slide 3: Pantallas LED Curvas */
.slide-3 { 
    background-image: url('Imagen Led Curva.jpg'); 
}
.swiper-button-next, .swiper-button-prev {
    color: #ffffff !important;
}

.swiper-pagination-bullet-active {
    background: #0284c7 !important;
}

/* Sección Productos */
.productos {
    padding: 90px 8%;
    text-align: center;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-imagenes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.card-imagenes.una-imagen {
    grid-template-columns: 1fr;
}

.card-imagenes img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease;
}

.card-imagenes img:hover {
    transform: scale(1.02);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: #0f172a;
}

.card p {
    text-align: left;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
}

.btn-card {
    display: block;
    text-align: center;
    border: 1px solid #0284c7;
    color: #0284c7;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-card:hover {
    background-color: #0284c7;
    color: #ffffff;
}

/* Sección Empresa / Nosotros */
.empresa {
    padding: 90px 8%;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.empresa-container {
    max-width: 1000px;
    margin: 0 auto;
}

.subtitulo {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.empresa-texto h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.empresa-texto p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
}

.galeria-empresa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 35px 0;
}

.galeria-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-4px);
}

.galeria-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.caption-foto {
    display: block;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    background-color: #ffffff;
}

.empresa-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.valor-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.valor-item h4 {
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.valor-item p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.5;
}

/* Sección Contacto */
.contacto {
    background-color: #ffffff;
    padding: 90px 8%;
}

.contacto-container {
    max-width: 600px;
    margin: 0 auto;
}

.contacto h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 25px;
    text-align: left;
}

.form-contacto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #0f172a;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0284c7;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.phone-group {
    display: flex;
    gap: 12px;
}

.phone-group select {
    width: 42%;
    background-color: #f8fafc;
    cursor: pointer;
}

.phone-group input[type="tel"] {
    width: 58%;
}

.btn-enviar {
    margin-top: 10px;
    align-self: flex-start;
    padding: 14px 32px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-status {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
    line-height: 1.5;
}

.form-status.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.info {
    display: block;
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.form-status.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

footer {
    text-align: center;
    padding: 28px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.footer-instagram svg {
    fill: currentColor;
    transition: transform 0.25s ease;
}

.footer-instagram:hover {
    color: #ffffff;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(214, 36, 159, 0.35);
}

.footer-instagram:hover svg {
    transform: scale(1.1);
}

/* Botón Hamburguesa Móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #0f172a;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    z-index: 9998;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    fill: #ffffff;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #e2e8f0;
        transform: translateY(-130%);
        transition: transform 0.3s ease-in-out;
        z-index: 9990;
        display: flex;
    }

    .nav.nav-active {
        transform: translateY(0);
    }

    .nav a {
        margin-left: 0;
        font-size: 1.15rem;
        padding: 5px 0;
    }

    .btn-nav {
        width: 80%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-instagram {
        margin-left: 0 !important;
        margin-top: 5px;
        width: 44px;
        height: 44px;
    }

    .hero-container {
        height: 75vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none; /* En pantallas táctiles se usa swipe nativo */
    }

    .productos,
    .empresa,
    .contacto {
        padding: 60px 6%;
    }

    .empresa-texto h2 {
        font-size: 1.85rem;
    }

    .phone-group {
        flex-direction: column;
        gap: 10px;
    }

    .phone-group select {
        width: 100%;
    }

    .phone-group input[type="tel"] {
        width: 100%;
    }

    .btn-enviar {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 5%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero-container {
        height: 70vh;
        min-height: 460px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 0.92rem;
    }

    .btn-primary {
        padding: 11px 20px;
        font-size: 0.95rem;
    }

    .productos,
    .empresa,
    .contacto {
        padding: 50px 4%;
    }

    .empresa-texto h2 {
        font-size: 1.6rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}