/* =========================
   FUENTE
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* =========================
   VARIABLES
========================= */
:root {
    --color-principal: #1C8A95;
    --color-secundario: rgba(255,255,255,0.9);
    --color-gris: rgba(255,255,255,0.2);
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* =========================
   BASE
========================= */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #1C8A95, #0f4f55);
    color: var(--color-secundario);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 130px;
}

/* =========================
   HEADER
========================= */
header {
    height: 130px;
    background: white;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.logo img {
    height: 80px;
}

header h1 {
    color: var(--color-principal);
}

/* =========================
   MENÚ
========================= */
.menu-toggle {
    display: none;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

nav a {
    position: relative;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 8px;
    transition: color 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    color: var(--color-principal);
}

#login-link:hover,
#logout-link:hover {
    color: white;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--color-principal);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 70%;
}

/* =========================
   APP
========================= */
#app {
    flex: 1;
}

/* =========================
   VISTAS
========================= */
.vista {
    display: none;
    padding: 40px 20px;
}

.vista.activa {
    display: block;
}

/* =========================
   LAYOUT GENERAL
========================= */
.contenido-vista {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1600px;
    margin: auto;
}

/* =========================
   INICIO (MEJORADO)
========================= */
#inicio .contenido-vista {
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
}

#inicio .texto {
    max-width: 550px;
    align-items: flex-start;
    text-align: left;
}

#inicio .video-container {
    flex: 1;
    max-width: 500px;
}

/* 🔥 eliminar flechas solo en inicio */
#inicio .arrow {
    display: none;
}

/* =========================
   TEXTO
========================= */
.texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
}

.texto h2 {
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.texto p:first-of-type {
    font-size: 1.1rem;
    font-weight: 500;
}

.texto p {
    line-height: 1.7;
    margin-bottom: 12px;
}

/* =========================
   LOGO SECCIÓN
========================= */
.logo-seccion {
    width: 100%;
    max-width: 300px;
    border-radius: 6px;
    margin: 0 auto 20px auto;
}

/* =========================
   VIDEO
========================= */
.video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* =========================
   CARRUSEL
========================= */
.carousel-container {
    max-width: 480px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.slide img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
}

/* =========================
   FLECHAS
========================= */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    color: #131313;
    cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }

/* =========================
   CONTACTO
========================= */
.contacto-wrapper {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.contacto-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contacto-wrapper p {
    margin-bottom: 30px;
    opacity: 0.85;
}

.form-container.grande {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    margin-bottom: 30px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.95);
}

.form-container button {
    width: 100%;
    padding: 14px;
    background: var(--color-principal);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.form-container button:hover {
    background: #146d75;
}

/* INFO EMPRESA */
.info-empresa {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);

    border-radius: 20px;
    padding: 25px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);

    transition: all 0.3s ease;
}

.info-empresa:hover {
    transform: translateY(-3px);
}

/* BLOQUES */
.bloque {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ICONOS */
.bloque i {
    font-size: 18px;
    color: white;

    background: rgba(255,255,255,0.15);
    padding: 10px;
    border-radius: 50%;
}

/* TEXTO */
.bloque span {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
}

.bloque a {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.bloque a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* DIVISOR MEJORADO */
.divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(
            to bottom,
            transparent,
            rgba(255,255,255,0.5),
            transparent
    );
}

/* =========================
   LOGIN
========================= */
.login-wrapper {
    max-width: 400px;
    margin: auto;
    text-align: center;
}

.login-box {
    margin-top: 20px;
    padding: 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: var(--color-principal);
    color: white;
    border: none;
    border-radius: 8px;
}
#login-link,
#logout-link {
    background: linear-gradient(135deg, #1C8A95, #146d75);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#login-link:hover,
#logout-link:hover {
    transform: translateY(-2px);
    color: white;
}
.crear-cuenta-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    transition: all 0.3s ease;
}

.crear-cuenta-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 20px;
    color: white;
}

.redes-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.redes-footer a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    transition: all 0.3s ease;
}

.redes-footer a:hover {
    transform: scale(1.1);
}

.redes-footer a:nth-child(1):hover {
    background: #1877f2;
}

.redes-footer a:nth-child(2):hover {
    background: #E1306C;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    body {
        padding-top: 40px;
    }

    header {
        height: auto;
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }

    .logo img {
        height: 40px;
    }

    header h1 {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        font-size: 22px;
        cursor: pointer;
        color: #333;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        gap: 0;
        padding: 8px 0;
        opacity: 0.95;
    }

    nav ul.activo {
        display: flex;
    }

    nav li {
        padding: 6px;
        text-align: center;
    }

    .contenido-vista {
        flex-direction: column;
        gap: 20px;
    }

    #inicio .contenido-vista {
        justify-content: center;
        gap: 30px;
    }

    #inicio .texto {
        align-items: center;
        text-align: center;
    }

    .texto {
        max-width: 95%;
    }

    .texto h2 {
        font-size: 1.6rem;
    }

    .video-container {
        max-width: 100%;
    }

    .slide img {
        max-width: 90%;
    }
}