/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Estilos del Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.logo-text .highlight {
    color: #3498db;
}

/* Estilos del Menú de Navegación */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.nav-link.active {
    color: #3498db;
    font-weight: 600;
}

.cta-nav .nav-link {
    background: #3498db;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-nav .nav-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Estilos del Menú Hamburguesa */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Media Queries para Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .cta-nav {
        margin-top: 2rem;
    }

    /* Animación del menú hamburguesa */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Ajuste del contenido principal para el header fijo */
main {
    margin-top: 80px; /* Altura del header */
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ccc;
}

#hero {
    position: relative; /* Needed for absolute positioning of video */
    overflow: hidden; /* Hide video overflow */
    color: #fff; /* White text for better contrast */
    padding: 8rem 2rem; /* Adjust padding as needed */
    text-align: center;
    width: 100%; /* Make hero section full width */
    min-height: 70vh; /* Give it some minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(to right, #005AA7, #FFFDE4); */ /* Background handled by video */
    /* margin-bottom: 30px; */ /* Remove bottom margin if it's the top element */
    /* border-radius: 8px; */ /* Remove border-radius for full width */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */ /* Remove shadow or adjust */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1; /* Above video, below content */
}

#hero-content {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}

#hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0; /* Behind overlay and content */
}

#hero h2 {
    margin-bottom: 1rem;
    font-size: 3.5rem; /* Larger heading for impact */
    font-weight: 700; /* Use Poppins bold */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Stronger shadow for readability */
}

#hero p {
    font-size: 1.2rem; /* Slightly larger paragraph text */
    margin-bottom: 2rem; /* More space before the button */
    color: #f0f0f0; /* Lighter text color */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Adjust CTA button specifically for hero */
#hero .cta-button {
    background-color: #ffc107; /* A bright yellow/orange */
    color: #333; /* Dark text on light button */
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none; /* Remove default border if any */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

#hero .cta-button:hover {
    background-color: #e0a800; /* Darker shade on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-2px); /* Slight lift effect */
}

.cta-button {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #4cae4c;
}

#plantillas {
    background: linear-gradient(135deg, #ff5830 0%, #ff7e60 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

#plantillas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

#plantillas h2 {
    color: #000000;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    text-shadow: none;
    font-weight: 700;
}

.plantillas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.plantilla-item {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
}

.plantilla-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.plantilla-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.plantilla-item h3 {
    margin-bottom: 1rem;
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
}

.plantilla-item p {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.plantilla-item .cta-button {
    background: #000000;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.plantilla-item .cta-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#sobre-nosotros,
#contacto {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 20px;
}

#contacto h2,
#sobre-nosotros h2 {
    margin-bottom: 1rem;
    color: #333; /* Asegura contraste */
}

#contacto form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#contacto form input[type="text"],
#contacto form input[type="email"],
#contacto form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contacto form textarea {
    min-height: 100px;
    resize: vertical;
}

#contacto form button {
    /* Reutiliza el estilo .cta-button o define uno nuevo */
    cursor: pointer;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #333;
    color: #fff;
}

/* Estilos para la cabecera del visor de demos (demo_viewer.php) */
.demo-header {
    background-color: #f8f9fa; /* Un color de fondo claro */
    padding: 10px 20px;
    border-bottom: 1px solid #dee2e6; /* Borde sutil */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Evitar que el header se encoja */
}

.demo-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.demo-header .brand-link {
    text-decoration: none;
    color: inherit;
}

.demo-header .buy-button {
    background-color: #28a745; /* Verde */
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.demo-header .buy-button:hover {
    background-color: #218838; /* Verde más oscuro */
}

/* Estilo para asegurar que el body del visor ocupe toda la altura */
body.demo-viewer-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Evitar scroll en el body principal */
}

/* Estilo para el iframe del visor */
#demo-frame {
    flex-grow: 1; /* El iframe ocupa el espacio restante */
    border: none; /* Sin borde para el iframe */
    width: 100%;
    height: 100%; /* Asegura que llene el contenedor */
}


/* Añadiremos más estilos y efectos aquí */
#hero h2.hero-impact {
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff5830 20%, #ff7e60 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.25);
    position: relative;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

#hero h2.hero-impact::after {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    margin: 18px auto 0 auto;
    background: linear-gradient(90deg, #ff5830, #ff7e60);
    border-radius: 3px;
    animation: underline-slide 1.2s cubic-bezier(0.4,0,0.2,1);
}

@keyframes underline-slide {
    from { width: 0; opacity: 0; }
    to { width: 80px; opacity: 1; }
}

.hero-sub {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
    animation: fadeInUp 1s cubic-bezier(0.4,0,0.2,1);
}

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

/* Estilos para la cabecera del visor de demos (demo_viewer.php) */
.demo-header {
    background-color: #f8f9fa; /* Un color de fondo claro */
    padding: 10px 20px;
    border-bottom: 1px solid #dee2e6; /* Borde sutil */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Evitar que el header se encoja */
}

.demo-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.demo-header .brand-link {
    text-decoration: none;
    color: inherit;
}

.demo-header .buy-button {
    background-color: #28a745; /* Verde */
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.demo-header .buy-button:hover {
    background-color: #218838; /* Verde más oscuro */
}

/* Estilo para asegurar que el body del visor ocupe toda la altura */
body.demo-viewer-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Evitar scroll en el body principal */
}

/* Estilo para el iframe del visor */
#demo-frame {
    flex-grow: 1; /* El iframe ocupa el espacio restante */
    border: none; /* Sin borde para el iframe */
    width: 100%;
    height: 100%; /* Asegura que llene el contenedor */
}


/* Añadiremos más estilos y efectos aquí */
/* Estilos para las animaciones */
#hero-content,
.plantilla-item,
#sobre-nosotros,
#contacto,
#plantillas h2 {
    visibility: visible;
    will-change: transform, opacity;
}

/* Efectos de hover mejorados para las tarjetas */
.plantilla-item {
    transition: all 0.3s ease;
    transform-origin: center;
}

.plantilla-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Animación para el botón CTA */
.cta-button {
    transition: all 0.3s ease;
    transform-origin: center;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Animación para las imágenes de las plantillas */
.plantilla-item img {
    transition: transform 0.3s ease;
    transform-origin: center;
}

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

#mini-plantillas {
    background: #000000;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

#mini-plantillas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.05)" stroke-width="1" fill="none"/></svg>');
    opacity: 0.2;
    z-index: 0;
}

#mini-plantillas h2 {
    color: #feb47b;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mini-plantillas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.mini-plantilla-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    visibility: visible !important; /* Forzar visibilidad */
}

.mini-plantilla-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000; /* Fondo negro para la imagen */
}

.mini-plantilla-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block; /* Asegurar que la imagen se muestre */
}

.mini-plantilla-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    visibility: visible !important; /* Forzar visibilidad */
}

.mini-plantilla-item:hover .mini-plantilla-overlay {
    opacity: 1;
    visibility: visible !important;
}

.mini-plantilla-item:hover .mini-plantilla-img img {
    transform: scale(1.1);
}

.mini-plantilla-overlay h3 {
    color: #feb47b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    visibility: visible !important;
}

.mini-plantilla-overlay p {
    color: #f5f5f5;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.5rem;
    visibility: visible !important;
}

.mini-plantilla-price {
    color: #feb47b;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    visibility: visible !important;
}

.mini-cta-button {
    background: linear-gradient(135deg, #ff5830 0%, #ff7e60 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    visibility: visible !important;
}

/* Eliminar la regla de visibilidad oculta para ScrollReveal */
.mini-plantilla-item {
    visibility: visible !important;
}

#reproductores {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

#reproductores::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.05)" stroke-width="1" fill="none"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

#reproductores h2 {
    color: #ff5830;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
    color: #f5f5f5;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.reproductores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.reproductor-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.reproductor-item h3 {
    color: #ff5830;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.reproductor-item > p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.reproductor-preview {
    position: relative;
    width: calc(100% + 3rem);
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 8px;
    margin: 0 -1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.reproductor-demo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.reproductor-demo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reproductor-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255, 88, 48, 0.4);
    background: rgba(0, 0, 0, 0.8);
}

.reproductor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7));
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reproductor-item:hover .reproductor-overlay {
    transform: translateY(0);
}

.reproductor-overlay h3 {
    color: #feb47b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.reproductor-overlay p {
    color: #f5f5f5;
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.reproductor-price {
    display: inline-block;
    background: linear-gradient(135deg, #ff5830 0%, #ff7e60 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.reproductor-cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reproductor-cta-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

/* Ajuste para ScrollReveal */
.reproductor-item {
    visibility: visible !important;
}