/* Estilos básicos de reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #111;
    color: #fff;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('../image/Portada.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Opacidad */
}

.content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    max-width: 320px; /* Tamaño moderado */
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card .portada {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card .portada:hover {
    transform: scale(1.05);
}

.card-content {
    margin-top: 20px;
}

.card-content h1 {
    font-size: 30px;
    margin-bottom: 10px;
    font-family: 'Helvetica', sans-serif;
    color: #fff;
}

.card-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 300;
    color: #D43C3D;
}

.listen-button {
    padding: 12px 30px;
    background-color: #D43C3D;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 200px;
    margin-top: 20px;
}

.listen-button:hover {
    background-color: #F15C5C;
}

/* Header transparente */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* Navbar contenedor de enlaces */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Estilo de los enlaces */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: #d2d2d2;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ffffff;
}

/* Ajuste de espacio en la parte superior de la hero */
.hero {
    padding-top: 80px; /* Para que no se tape por el header */
}

/* Hamburger icon */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive nav para móviles */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Muestra el icono del menú hamburguesa */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(1, 26, 27, 0.447);
        backdrop-filter: blur(10px);
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 999;
        transition: background-color 0.3s ease;

    }

    /* Menú activo cuando se hace clic en el icono */
    .nav-links.active {
        display: flex;
    }

    /* Estilo de los enlaces en el menú desplegado */
    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }
    .nav-links li a {
        font-size: 18px;
    }
}


/* Video Section */
.video {
    padding: 60px 20px;
    background-color: #222;
    text-align: center;
}

.video h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.video-container iframe {
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    padding: 40px 20px;
    background-color: #111;
    text-align: center;
    position: relative;
    bottom: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    font-size: 18px;
    color: #fff;
}

.social-links {
    margin-top: 20px;
}

.social-icon {
    margin: 0 15px;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #D43C3D;
    transition: width 0.3s ease;
    bottom: -5px; 
    left: 50%;
    transform: translateX(-50%);
}

.social-icon:hover {
    color: #D43C3D;
    transform: translateY(-3px);
}

.social-icon:hover::after {
    width: 100%;
}

.social-icon:hover {
    transform: translateY(-5px);
}


@media (max-width: 768px) {
    .card {
        padding: 20px;
        max-width: 280px;
    }

    .card .portada {
        height: 220px;
    }

    .listen-button {
        padding: 10px 25px;
        font-size: 16px;
    }

    .video-container iframe {
        height: 250px;
    }

    .footer p {
        font-size: 16px;
    }

    .social-icon {
        font-size: 16px;
    }
}

/* Media Queries para dispositivos más pequeños (iPhone 6, etc.) */
@media (max-width: 480px) {
    .card {
        padding: 15px;
        max-width: 240px;
    }

    .card .portada {
        height: 200px;
    }

    .listen-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .video-container iframe {
        height: 200px;
    }

    .footer p {
        font-size: 14px;
    }

    .social-icon {
        font-size: 14px;
    }
}
