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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #111;
    color: #f5f5f5;
    min-height: 200vh;
    /* Para permitir scroll */
}

/* Header */
.main-header {
    position: relative;
    height: 100vh;
    background: url('assets/header-bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: white;
}

.header-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #00ffff;
}

/* Secciones generales */
.section {
    min-height: 600px;
    padding: 4rem 2rem;
    background-size: cover;
    background-position: center;
    position: relative;
    backdrop-filter: brightness(0.8);
}

/* Ejemplo imágenes de fondo para secciones (reemplazar con imágenes reales) */
.locucion-section {
    background-image: url('assets/fondo-locucion.jpg');
}

.video-section {
    background-image: url('assets/fondo-video.jpg');
}

.webapps-section {
    background-image: url('assets/fondo-webapps.jpg');
}

.streaming-section {
    background-image: url('assets/fondo-streaming.jpg');
}

.galeria-section {
    background-image: url('assets/fondo-galeria.jpg');
}

.contacto-section {
    background-image: url('assets/fondo-contacto.jpg');
}

/* Títulos secciones */
.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px #000;
}

/* Grillas y estilos varios */
.audio-grid,
.video-grid,
.galeria {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 2rem;
}

audio,
iframe,
.section-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.galeria img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.galeria img:hover {
    transform: scale(1.05);
}

/* Formulario contacto */
.contact-form {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background-color: #222;
    color: #f5f5f5;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: 2px solid #00ffff;
}

button {
    background: #00ffff;
    color: #111;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #00cccc;
}

/* Footer */
footer {
    background-color: #000;
    color: #aaa;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Burbuja de radio - común */
.radio-bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.5s ease;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

/* Burbuja en header - centrada abajo, tamaño grande */
.radio-bubble.centered {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 110px;
    height: 110px;
    border-radius: 55px;
    background-color: #343030;
    border: 4px solid #000000;
}

/* Burbuja fija al hacer scroll - abajo derecha, tamaño más pequeño */

.radio-bubble.fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background-color: #1a1a1a;
    border: 3px solid #222;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transform: none !important;
}


/* Botón rojo dentro de la burbuja */
.boton-rojo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    background-color: #e91414;
    border-radius: 40px;
    /* Más ovalado para texto */
    border: none;
    padding: 0 20px;
    height: 50px;
    box-shadow:
        inset 0 0 12px rgba(255, 0, 0, 0.7),
        0 0 20px rgba(255, 0, 0, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

/* Ajuste tamaño y padding en estado fijo (scroll) */
.radio-bubble.fixed .boton-rojo {
    font-size: 0.9rem;
    height: 40px;
    padding: 0 12px;
    border-radius: 30px;
    box-shadow:
        inset 0 0 8px rgba(255, 0, 0, 0.7),
        0 0 12px rgba(255, 0, 0, 0.6);
}

/* Hover */
.boton-rojo:hover {
    background-color: #ff2a2a;
    transform: scale(1.05);
}

/* Animación pulso latido */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Estado cuando está reproduciendo (cambia a verde) */
.radio-bubble.playing .boton-rojo {
    background-color: #00ff90;
    box-shadow:
        inset 0 0 12px #00ff90,
        0 0 20px #00ff90;
}

.radio-bubble.fixed.playing {
    box-shadow: 0 0 10px #00ff90;
}

.radio-bubble.centered.playing {
    box-shadow: 0 0 20px #00ff90;
}

/* Centrado de audios en sección Locución */
.centered-audios {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 2rem 0;
    text-align: center;
}

.centered-audios li {
    max-width: 320px;
}

/* Layout para la sección Streaming: texto a la izquierda, galería a la derecha */
.streaming-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.streaming-text {
    flex: 1 1 45%;
    font-size: 1.1rem;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
}

.streaming-gallery {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    max-height: 600px;
}

.streaming-gallery .gallery-img {
    width: 100%;
    height: calc((600px - 2rem) / 3);
    /* 3 imágenes ajustadas a la altura total */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.streaming-gallery .gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
/* Sección Quiénes Somos */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1 1 60%;
    font-size: 1.1rem;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
}

.about-video {
    flex: 1 1 35%;
    display: flex;
    justify-content: center;
}

.about-video iframe {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* Separadores visuales entre secciones */
.section-divider {
    height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.6);
}

/* Centrado vertical y horizontal de los demos de locución */
.locucion-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centra verticalmente */
    align-items: center;
    min-height: 600px;
}

.locucion-demos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    /* más separación horizontal */
    list-style: none;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.locucion-demos li {
    text-align: center;
}

.locucion-demos audio {
    width: 320px;
    /* reproductores más grandes */
    height: 50px;
}

.main-header h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.main-header h2 {
    font-size: 2rem;
    margin-top: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.main-header p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.about-video {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}


/* Botón flotante de WhatsApp */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    width: 60px;
    height: 60px;
    cursor: pointer;
}


.whatsapp-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
    transform: scale(1.1);
}

/* Íconos de redes sociales en el footer */
.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
}

.webapps-text {
    flex: 1 1 45%;
    font-size: 1.1rem;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .streaming-content {
        flex-direction: column;
    }

    .streaming-gallery {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .streaming-gallery .gallery-img {
        max-height: none;
        width: 100%;
        margin-bottom: 1rem;
    }
}