/* Variables de color y estilo */
:root {
    /* Colores principales */
    --color-primary: #4770E2;
    --color-primary-light: rgba(71, 112, 226, 0.7);
    --color-primary-dark: #3a5bc0;
    
    /* Colores de texto */
    --color-text: #333;
    --color-text-light: #666;
    
    /* Colores de fondo */
    --color-bg-light: #ffffff;
    --color-bg-gray: #f8f8f8;
    --color-bg-dark: #272727;
    
    /* Colores de elementos UI */
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-hover: rgba(0, 0, 0, 0.15);
    
    /* Gradientes */
    --gradient-title: linear-gradient(90deg, rgba(39, 39, 39, 0.3) 0%, rgba(39, 39, 39, 0.8) 50%, #4770E2 100%);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Bordes */
    --border-radius-sm: 5px;
    --border-radius-md: 7px;
    --border-radius-lg: 8px;
    --border-radius-full: 50px;
    
    /* Sombras */
    --shadow-sm: 0px 2px 5px var(--color-shadow);
    --shadow-md: 0px 10px 14px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0px 4px 8px var(--color-shadow-hover);
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Urbanist', sans-serif;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    padding: 0 20px;
}






/* Contenedores de sección */
.section-container {
    max-width: 100%;
    padding: 0 var(--spacing-sm);
}

/* Tipos de sección */
.section-light, .section-gray {
    background-color: transparent;
    /* padding: var(--spacing-lg) 0; */
}

.section-image {
    padding: 0;
}

/* Elementos de texto */
.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: normal;
}

.section-title-container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: var(--spacing-xs);
}
.section-title-container .section-title {
    /* line-height: normal; */
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.section-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

/* Header */
#header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    position: relative;
    top: 0;
    z-index: 100;
    max-width: 700px;
    width: 100%;
}

.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0px 0px 20px rgb(0 0 0 / 4%);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Evita interacciones cuando está oculto */
    transform: translateY(-10px);
    border: 1px solid #eeeeee;
}

.nav-menu.active {
    max-height: 300px;
    padding: var(--spacing-sm);
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Permite interacciones cuando está visible */
    transform: translateY(0);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* gap: var(--spacing-sm); */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.1s;
}

.nav-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s;
}

.nav-menu.active .nav-links,
.nav-menu.active .nav-social {
    opacity: 1;
    transform: translateY(0);
}

.nav-links li {
    display: block;
    /* margin: 1rem 0; */
    text-align: center;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
    padding: var(--spacing-xs) 0;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a.active {
    font-weight: 600;
    color: var(--color-primary);
}

.nav-social .social-link {
    color: var(--color-text-light);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: var(--spacing-xs);
}

.nav-social .social-link:hover {
    opacity: 1;
    color: var(--color-primary);
}

.logo img {
    height: 30px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text);
    padding: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    position: relative;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--color-bg-gray);
}

/* Secciones principales */
section {
    width: 100%;
}

/* Sección Perfil */
.section-profile {
    /* text-align: center; */
    padding-top: 1.5rem;
}

.section-profile .section-title {
    font-size: 2.2rem;
}

/* Estilos para el contenido expandido */
.expanded-content {
    /* margin-top: 1.5rem; */
    text-align: left;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.expanded-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.expanded-content p {
    margin-bottom: 1rem;
}

/* Estilos para el botón seguir */
.btn-follow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-full);
    padding: 8px 20px;
    /* margin-top: var(--spacing-md); */
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    /* max-width: 150px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
}

.btn-follow:hover {
    box-shadow: var(--shadow-hover);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--color-primary-light);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(71, 112, 226, 0.2);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(71, 112, 226, 0.1);
    }
}

.btn-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-right: 5px;
}

.arrow-icon {
    font-size: 16px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.btn-follow:hover .arrow-icon {
    transform: translateX(3px);
}

/* Estado alternativo para cuando el contenido está expandido */
.btn-follow.expanded .btn-text {
    color: var(--color-primary);
}

.btn-follow.expanded .arrow-icon {
    transform: rotate(-90deg);
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-img {
    width: 100px;
    height: 100px;
    /* border-radius: 50%; */
    /* object-fit: cover; */
    margin-bottom: 10px;
}

.mia-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.mia-img {
    width: 100%;
    max-width: 250px;
    transition: opacity 0.9s ease-in-out;
}


.skool-img {
    width: 120px;
    padding-left: 2px;
}

.section-profile .section-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-profile .section-title span {
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* background-color: #f0f0f0; */
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    /* background-color: #e0e0e0; */
}

/* Estilos para separadores usando pseudo-elementos */
.separator .section-container {
    position: relative;
    padding-bottom: 1.5rem;
}

.separator {
    padding-bottom: 60px;
    background-image: url('../images/separator.svg');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: auto;
    margin-bottom: var(--spacing-md);
}




/* Sobrescribir estilos del shadow DOM del widget */
:root {
    --convai-widget-position: relative !important;
    --convai-widget-bottom: auto !important;
    --convai-widget-right: auto !important;
}

/* Estilos adicionales para el contenedor del widget */
/* .elevenlabs-convai-container {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
} */

/* Estilos para botones sociales */
.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link-large {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-link-large img {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.social-link-large span {
    font-weight: 500;
}

.social-link-large.youtube {
    background-color: #FF0000;
}

.social-link-large.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-link-large.tiktok {
    background-color: #000000;
}

@media (min-width: 768px) {
    .social-links-large {
        flex-direction: row;
    }
    
    .social-link-large {
        flex: 1;
        justify-content: center;
    }
}


/* Botón principal */
.btn-primary {
    display: inline-block;
    background: var(--color-bg-dark);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    color: var(--color-bg-light);
    padding: 0.8rem 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0px 12px 16px rgba(0, 0, 0, 0.4);
}

/* Imágenes de ancho completo */
.full-width-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Burbuja de chat */
.chat-bubble {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-gray);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-full);
    margin-top: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-bubble:hover {
    background-color: var(--color-border);
}

.chat-icon {
    margin-right: 0.8rem;
}

.chat-icon img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Formulario de suscripción */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

.subscribe-form input {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    width: 100%;
}

.subscribe-form button {
    border: none;
    /* cursor: pointer; */
}

/* Estilos para mensajes de estado de formularios */
.form-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    transition: all 0.5s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.form-message.visible {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 10px;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
}

.form-message.loading {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid #2196F3;
}

/* Footer */
footer {
    background-color: var(--color-bg-light);
    /* padding: var(--spacing-md) var(--spacing-sm); */
    /* border-top: 1px solid var(--color-border); */
    /* margin-top: var(--spacing-xl); */
    padding-bottom: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: var(--spacing-md); */
    /* text-align: center; */
}

.footer-newsletter {
    /* margin-bottom: var(--spacing-md); */
    width: 100%;
    /* max-width: 400px; */
    padding-left: 20px;
    padding-right: 20px;
}

.footer-section-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    align-items: flex-start;
}

.footer-form input {
    padding: var(--spacing-xs);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    width: 100%;
}

.footer-form button {
    align-self: flex-start;
}

.footer-social {
    display: flex;
    justify-content: center;
    /* gap: var(--spacing-xs); */
    margin-bottom: var(--spacing-sm);
}

.footer-social .social-link {
    color: var(--color-text-light);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-social .social-link:hover {
    opacity: 1;
}

.footer-branding {
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.footer-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-light);
    /* margin-bottom: 0.2rem; */
    line-height: 20px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-light);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.footer-link {
    font-size: 0.8rem;
    color: var(--color-text-light);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-separator {
    font-size: 0.8rem;
    color: var(--color-text-light);
    opacity: 0.5;
}



/* Estilos para la sección de vídeos */
.video-container {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

.video-item {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--color-primary);
    margin-left: 5px;
}

.video-item:hover .play-button {
    background-color: rgba(255, 255, 255, 0.9);
}

.video-title {
    padding: 15px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-align: center;
    background-color: #f5f5f5;
}

/* Responsive para móviles grandes y tablets */
@media (min-width: 576px) {
    .video-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mantener dos columnas incluso en pantallas grandes */
@media (min-width: 1024px) {
    .video-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

.video-placeholder {
    background-color: var(--color-bg-dark);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-light);
    font-size: 1.2rem;
    border-radius: var(--border-radius);
}

/* Responsive para tablets y escritorio */
@media (min-width: 768px) {
    .video-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .video-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

.social-link-large {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background-color: #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link-large:hover {
    background-color: #e0e0e0;
}

.social-link-large i {
    font-size: 1.5rem;
    margin-right: 1rem;
}



/* Media queries para dispositivos más grandes */
@media (min-width: 768px) {

    main {
        padding: 0;
    }

    .section-light, .section-gray {
        /* padding: var(--spacing-xl) 0; */
    }
    
    .section-container {
        max-width: 600px;
        margin: 0 auto var(--spacing-md) auto;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-img {
        /* width: 100px; */
        /* height: 100px; */
    }
    
    .subscribe-form {
        /* flex-direction: row; */
    }
    
    .subscribe-form input {
        /* flex: 1; */
    }
    
    .footer-content {
        flex-direction: column;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-newsletter {
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-social {
        margin-bottom: var(--spacing-md);
    }
    
    .footer-social .social-link {
        font-size: 1.8rem;
    }
    
    /* Mantener el menú hamburguesa en todas las resoluciones */
    .menu-toggle {
        display: flex;
    }
    
    .social-links-large {
        flex-direction: row;
    }
    
    .social-link-large {
        flex: 1;
        justify-content: center;
    }
    
    .video-placeholder {
        height: 300px;
    }
}
