:root {
    --primary-color: #6a6c81;
    --primary-light: #9694b0;
    --primary-dark: #383a46;
    --secondary-color: #54cae8;
    --text-light: #ffffff;
    --text-dark: #232323;
    --bg-light: #f5f5f5;
    --bg-dark: #191919;
}

/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Menú principal */
.main-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.main-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/fondo_index.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 0;
}

.logo-container {
    margin-bottom: 50px;
    z-index: 2;
    max-width: 80%;
    text-align: center;
}

.main-logo {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.menu-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    z-index: 2;
}

.menu-option {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 3px solid var(--primary-color);
}

#fiestas {
    background-image: url('../img/theshowparty_logo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#eventos {
    background-image: url('../img/TSP\ PRODUCCIONES.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.option-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    opacity: 0.8;
    transition: all 0.4s ease;
    z-index: 1;
    object-fit: contain;
}

.menu-option:hover .option-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
}

.option-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.option-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    text-align: center;
    z-index: 3;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.menu-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.menu-option:hover .option-overlay {
    opacity: 1;
}

.menu-option:hover .option-content {
    transform: translateY(0);
}

.option-content h2 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.option-description {
    margin: 0 0 25px 0;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.option-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.menu-option:hover .option-description,
.menu-option:hover .option-button {
    opacity: 1;
    transform: translateY(0);
}

.option-button:hover {
    background-color: #54cae8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Estilos para página de eventos */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
}

.back-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-button i {
    margin-right: 8px;
    font-size: 1.1em;
}

.logo-TSP{
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Estilos para la sección de video hero */
.video-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 35, 126, 0.6), rgba(26, 35, 126, 0.8));
}

/* Carrusel de imágenes */
.image-carousel {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

/* Secciones */
.section-container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-container h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
}

.dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.dark-bg h2 {
    color: var(--text-light);
}

.dark-bg h2::after {
    background-color: var(--secondary-color);
}

.secondary-clients-title {
    margin-top: 60px !important;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-bg .service-card {
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.dark-bg .service-card h3 {
    color: var(--text-light);
}

/* Organigrama */
.organigrama-container {
    margin-top: 60px;
}

.organigrama-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.organigrama {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 30px;
}

.nivel-line {
    width: 2px;
    height: 40px;
    background-color: var(--secondary-color);
    margin: 10px 0;
}

.nivel-line-horizontal {
    width: 80%;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 20px 0;
}

.nivel-1, .nivel-2, .nivel-3 {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nivel-3 {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.nivel-3 .org-node {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.org-node {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0 10px;
    position: relative;
    z-index: 2;
}

.dark-bg .org-node {
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.1);
}

.org-position {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Clientes */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.client-logo-container {
    position: relative;
    cursor: pointer;
}

.client-logo-container img {
    max-height: 100px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-logo-container:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.client-info {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.dark-bg .client-info {
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.1);
}

.client-logo-container:hover .client-info {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.client-info h4 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
}

.dark-bg .client-info h4 {
    color: var(--secondary-color);
}

.client-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.client-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.client-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.secondary-clients img {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.secondary-clients img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contacto */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.correo {
    font-size: small;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 25px;
    margin-bottom: 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    margin: 20px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
    width: 100%;
    text-align: center;
}

.listas{
    text-align: left;
}

.links{
    color: #54cae8;
}

.key-words{
    color: var(--primary-dark);
}

.logo {
    max-width: 100px;
    height: auto;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* Responsive */
@media (max-width: 1024px) {
    .video-hero {
        height: 70vh;
    }
    
    .image-carousel {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .menu-option {
        min-width: 250px;
        height: 350px;
    }
    
    .option-icon {
        width: 120px;
        height: 120px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .main-nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .video-hero {
        height: 60vh;
    }
    
    .section-container h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .section-container {
        padding: 60px 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .client-logos {
        gap: 20px;
    }
    
    .client-logo-container img {
        max-height: 80px;
        max-width: 120px;
    }
    
    .secondary-clients img {
        max-height: 60px;
        max-width: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .footer-social a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .footer-logo {
        height: 70px;
    }
    
    .image-carousel {
        height: 50vh;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        padding: 10px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-menu::before {
        background-attachment: scroll;
    }
    
    .video-hero {
        height: 50vh;
    }
    
    .logo-TSP {
        height: 50px;
    }
    
    .menu-option {
        height: 300px;
        min-width: 280px;
    }
    
    .option-icon {
        width: 100px;
        height: 100px;
    }
    
    .option-content {
        padding: 20px;
    }
    
    .option-content h2 {
        font-size: 1.8rem;
    }
    
    .section-container h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section-container {
        padding: 50px 10px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .client-logos {
        gap: 15px;
    }
    
    .client-logo-container img {
        max-height: 60px;
        max-width: 100px;
    }
    
    .secondary-clients img {
        max-height: 50px;
        max-width: 100px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .image-carousel {
        height: 40vh;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer-logo {
        height: 60px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .video-hero {
        height: 45vh;
    }
    
    .menu-option {
        min-width: 260px;
        height: 280px;
    }
    
    .option-content h2 {
        font-size: 1.6rem;
    }
    
    .section-container h2 {
        font-size: 1.6rem;
    }
    
    .image-carousel {
        height: 35vh;
    }
}