/* Paleta de colores */
:root {
  --color-1: #E2E8F0;
  --color-2: #94A3B8;
  --color-3: #475569;
  --color-4: #0D9488;
  --color-5: #059669;



  --bg-dark: #0F172A;
  --bg-sidebar: #020617;
  --bg-section: #1E293B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-1) ;
}

header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo img {
    width: 100px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05) rotate(2deg);
}

.titulo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.titulo-principal {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-3);
    letter-spacing: -0.5px;
}

.titulo-secundario {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-2);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-3);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-link:hover {
    color: var(--color-4);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-link-cta {
    background: var(--color-4);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(69, 182, 156, 0.3);
}

.nav-link-cta::before {
    background: var(--color-5);
}

.nav-link-cta:hover {
    background: var(--color-5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 209, 159, 0.4);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    list-style: none;
    padding: 8px;
    margin: 0;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: var(--color-4);
    color: white;
    transform: translateX(5px);
}

.dropdown-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.dropdown-menu li a:hover .dropdown-icon {
    transform: scale(1.2);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--color-3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px 20px;
    }

    .logo-titulo {
        flex: 1;
    }

    .titulo-principal {
        font-size: 1rem;
    }

    .titulo-secundario {
        font-size: 0.65rem;
    }


    .hamburger {
        display: flex;
    }

    header.scrolled .hamburger-line {
        background: var(--color-4);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        margin-top: 15px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 10px;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        color: #333;
        padding: 15px 20px;
        border-radius: 8px;
        justify-content: flex-start;
    }

    .nav-link:hover {
        background: var(--color-4);
        color: white;
    }

    .nav-link-cta {
        background: var(--color-4);
        color: white;
    }

    .nav-link-cta:hover {
        background: var(--color-5);
    }

    .dropdown-menu {
        position: static;
        transform: translateY(0);
        box-shadow: none;
        background-color: #f8f9fa;
        margin-left: 20px;
        margin-top: 5px;
    }

    .dropdown-menu li a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    .titulo {
        font-size: 1rem;
    }

    .titulo-secundario
    {
        display: none;
    }

    .nav-menu li a {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

/* Footer */
/* Estilos generales del footer */
footer {
  background-color: var(--bg-section);
  color: var(--color-2);
  font-family: Arial, sans-serif;
  padding: 40px 20px 20px 20px;
  border-top-right-radius: 50px;
}

/* Contenedor principal */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}

/* Cada sección dentro del footer */
.footer-section {
  flex: 1 1 200px;
  margin: 10px;
}

/* Títulos de las secciones */
.footer-section h4 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #ffffff;
}

/* Texto dentro de las secciones */
.footer-section p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #bdc3c7;
}

/* Contenedor de enlaces sociales/enlaces de interés */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* Estilo de los enlaces */
.social-links .social-icon {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

/* Hover sobre enlaces */
.social-links .social-icon:hover {
  color: #3498db;     /* cambia a azul */
  transform: translateX(5px); /* ligero movimiento */
}

/* Footer inferior */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  font-size: 0.85em;
  color: #95a5a6;
  margin-top: 20px;
}

/* Responsive: apila las secciones en móviles */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-section {
    margin: 15px 0;
    text-align: center;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-links .social-icon {
    margin: 5px;
  }
}



/* Contenedor de video */
.video-container {
  width: 100%;
  max-width: 560px;      
  margin: 50px auto;    
  aspect-ratio: 16 / 9;  
  overflow: hidden;
  border: 5px solid #333;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;            
}

