  /* ===== Reset Básico ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

ul, ol {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================
 Font Face: TT Fors
 ============================= */
@font-face {
font-family: 'TT Fors';
src: url('../fonts/tt_fors/TT-Fors-Regular.woff2') format('woff2'),
     url('../fonts/tt_fors/TT-Fors-Regular.woff') format('woff');
font-style: normal;
font-display: swap;
}

:root {
    /* Tipografía */
    --fuente-principal: 'TT Fors', sans-serif;
    --fuente-alterna: 'Commissioner', sans-serif;    

    /* 🎨 Colores institucionales */
    --color-primario: #0B2545;           /* (este se puede reemplazar si ya no es el azul) */
    --color-secundario: #3DB89E;         /* Verde institucional */
    --color-verde-oscuro: #2D8F77;       /* Hover, íconos */
    --color-texto: #636567;              /* Texto principal */
    --color-fondo: #FFFFFF;              /* Fondos claros */
    --color-gris-claro: #EAEAEA;         /* Bordes, fondo neutro */
    --color-fondo-oscuro: #121A24;       /* Alternativo o dark mode */

    --color-boton-rojo: #de0000;         /*  Boton rojo de Eliminar o Cancelar*/
    --color-boton-amarillo: #f9e629;     /*  Boton amarillo de Editar */

    --color-focus-verde: #21a045; /* O usa tu institucional: #3DB89E  Este es para los Focus de todos los formularios.*/


    /* 🧩 MODALES */
    --color-modal-header: #2D8F77; /* Rojo institucional o el color que prefieras */
    --radio-bordes: 0.7rem;



    /* 🧩 Otros */
    --espaciado-seccion: 4rem;
    --radio-bordes: 6px;
    --sombra-suave: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* 📌 main.css – estilos globales */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

body {
    font-family: var(--fuente-alterna);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-weight: 400;
    color: var(--color-primario);
    margin-bottom: 0.2rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.2rem; }

p {
    font-weight: 500;
    margin-bottom: .5rem;
    color: var(--color-texto);
}

a {
    color: var(--color-secundario);
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #1daa57;
}

.btn-outline-success {
  color: #198754 !important;         /* Verde Bootstrap */
  border-color: #198754 !important;
  background-color: #fff !important;
  transition: all 0.3s;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  color: #fff !important;
  background-color: #198754 !important;
  border-color: #198754 !important;
}

/*//////////////////////////////////////////////////
              NAV PUBLICO - GENERAL
//////////////////////////////////////////////////*/


/* ===== NAVBAR CON LOGO HORIZONTAL – Sin Miedo al Trading ===== */

.navbar {
    background-color: var(--color-fondo-oscuro); /* #121A24 */
    color: #fff;
    min-height: 100px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    width: 400px;
    height: 80px;
}

.navbar-brand img {
    width: 380px;
    height: 70px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-size: 1.08rem; /* ~16.8px si root es 16px */
    color: #ffffff;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--color-verde-oscuro); /* Hover verde oscuro */
}

/* Estilo destacado para Panel de Administración */
.navbar-nav .nav-link[href*="/admin"] {
    color: var(--color-secundario); /* Verde institucional */
    font-weight: 600;
}

/* Dropdown menus */
.dropdown-menu {
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid var(--color-gris-claro);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dropdown-menu a {
    color: var(--color-texto);
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-gris-claro);
    color: var(--color-primario);
}

/* Avatar usuario */
.navbar-avatar {
    width: 55px;
    height: 55px;
    object-fit: cover;
    background-color: #eee;
}


.navbar .navbar-nav img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-secundario);
}

/* ===== Dropdown personalizado ===== */

.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #fff;
    color: var(--color-texto);
    border-radius: var(--radio-bordes);
    box-shadow: var(--sombra-suave);
    display: none;
    z-index: 1000;
    flex-direction: column;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    color: var(--color-texto);
    transition: background-color 0.2s ease-in-out;
}

.dropdown-menu a:hover {
    background-color: var(--color-gris-claro);
    color: var(--color-primario);
}

.dropdown-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e1e1e1;
}

.dropdown-menu-end {
    left: auto;
    right: 0;
}


.navbar-gradient {
background: linear-gradient(to right, #3DB89E, #2D8F77, #121A24); /* 🎨 Tu gradiente institucional */
border-radius: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
margin: 15px;
padding: 10px 20px;
transition: all 0.3s ease;

}

.navbar-gradient .nav-link,
.navbar-gradient .dropdown-toggle {
    color: white !important;
    font-weight: 700;
    transition: color 0.2s ease;
}

.navbar-gradient .nav-link:hover,
.navbar-gradient .dropdown-item:hover {
    color: #00FFFF !important;
}

.navbar-gradient .dropdown-menu {
    background-color: #1E1E1E;
    border: none;
    border-radius: 10px;
}

.navbar-gradient .dropdown-item {
    color: white;
}

.navbar-gradient .dropdown-item:hover {
    background-color: #2D8F77;
}

.navbar-brand img {
    max-height: 70px;
}

.navbar-brand img {
    filter: drop-shadow(0 0 2px #000) brightness(100%);
}

.dropdown-header {
    color: #bbbbbb !important;     /* ✅ Texto gris claro, visible sobre fondo oscuro */
    font-size: 0.55rem !important; /* ✅ Más pequeño que las opciones normales */
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    text-transform: uppercase;     /* Opcional: letras en mayúsculas */
    font-weight: 500;
    opacity: 0.9;
}

    /* ✅ Botón institucional */
    .navbar-gradient .btn-institucional {
    background-color: #3DB89E !important;
    color: white !important;
    border: none !important;
    padding: 8px 28px !important;
    border-radius: 50px !important;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease;
    display: inline-block !important;
    text-align: center;
    min-width: 120px; /* ✅ Le da largo mínimo */
    }


    .btn-institucional:hover {
        background-color: #2D8F77;
        color: white;
        box-shadow: 0 0 10px rgba(61, 184, 158, 0.5);
    }

    .btn-institucional {
      border-radius: 1rem; /* O prueba 0.5rem para menos redondeado */
      font-weight: 600;
      font-size: 0.9rem;
    }

.navbar .dropdown img {
    cursor: pointer;
}


/* ===== NAVBAR JUSTE PARA MOBILE ===== */

.navbar-brand img {
  max-height: 180px;
}

/* 🔧 Estilo del toggle (hamburguesa) */
.navbar-toggler {
    border: none;
    color: white; /* Para iconos que lo necesiten */
    padding: 0.5rem;
    margin-left: auto;
    margin-right: 0;
    align-self: center;
}

/* Forzar el ícono a blanco */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


@media (max-width: 768px) {
  .navbar-brand {
    max-width: 180px;
  }
}

@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #121A24; /* fondo sólido */
        padding: 1rem;
        border-radius: 0 0 20px 20px;
        z-index: 9999;
    }

    .navbar-nav .nav-link {
        color: white !important;
        margin: 0.5rem 0;
        font-size: 1.1rem;
    }

    .btn-institucional {
        width: 100%;
        margin-top: 0.5rem;
    }
}







/*//////////////////////////////////////////////////
              HOME
//////////////////////////////////////////////////*/

/* ================================
   HERO SECTION (Cabecera principal)
   ================================ */
.hero-section {
    position: relative;
    background-color: transparent;
    min-height: 100vh; /* altura principal */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-section .container {
    z-index: 2;
    max-width: 1100px;
}

.hero-title {
    font-size: 5.1rem;
    font-weight: 800;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.6rem;
    color: #6c757d;
}

/* Responsivo para HERO */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
}


/* ==== Líneas de fondo decorativas en Home ==== */
.grid-lines {
    background-image: repeating-linear-gradient(
        to right,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 100px
    );
    background-size: 100px 100%;
    position: relative;
    width: 100%;
}


/* ================================
   BOTÓN PRINCIPAL DE ACCIÓN (CTA)
   ================================ */
.btn-calltoaction-gradient {
    background: linear-gradient(135deg, #e53935, #d81b60);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-calltoaction-gradient:hover {
    background: linear-gradient(135deg, #d32f2f, #c2185b);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-calltoaction-gradient i {
    margin-left: 0.5rem;
    color: #fff !important;
}

/* ================================
   LÍNEAS DE FONDO GRID (Decorativas)
   ================================ */
.grid-lines {
    background-image: repeating-linear-gradient(
        to right,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 100px
    );
    background-size: 100px 100%;
    position: relative;
    width: 100%;
}

/* ================================
   IMÁGENES CON ZOOM (Hero, reutilizable)
   ================================ */
.zoom-wrapper {
    position: relative;
    overflow: visible;
}

/* Imagen principal */
.main-img {
    display: block;
    width: 100%;
}

/* Imagen zoom oculta inicialmente */
.zoom-img {
    position: absolute;
    top: -20px;
    left: -20px;
    transform: scale(1.3);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
/* Mostrar imagen ampliada al hacer hover */
.zoom-wrapper:hover .zoom-img {
    opacity: 1;
}

/* ================================
   CLASES REUTILIZABLES EN TODA LA WEB
   ================================ */
.img-expand-hover {
    position: absolute;
    top: -20px;
    left: -20px;
    transform: scale(1.3);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.img-expand-container:hover .img-expand-hover {
    opacity: 1;
}


/* ================================
   SECCION NOSOTROS
   ================================ */
.seccion-nosotros {
  background-color: #f5f8fa;
  position: relative;
  overflow: hidden;
}

.nosotros-background {
  background-image: url('/assets/img/bg_nosotros.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.titulo-seccion {
  font-size: 2rem;
  font-weight: 700;
}

.frase-subrayada {
  border-bottom: 3px solid #3DB89E;
  display: inline-block;
  padding-bottom: 5px;
}



/* ================================
   SECCION TESTIMONIOS
   ================================ */
.testimonios-fullwidth {
    background-color: var(--color-fondo-oscuro); /* #121A24 */
    /* background-image: url('assets/img/bg-testimonios.jpg'); */ /* si deseas usar imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;

}

.testimonio-text {
    color: #3DB89E; /* verde institucional */
    font-style: italic;
    margin-bottom: 0.5rem;
}

.testimonios-inner blockquote {
    border-left: 4px solid #3DB89E;
    padding-left: 1rem;
}


/* ================================
   SECCION PRECIOS
   ================================ */
.seccion-precios {
    background-color: #f8f9fa; /* fondo claro tipo Bootstrap */
}

.seccion-precios h1, 
.seccion-precios h5 {
    color: #ffffff;
}


/*//////////////////////////////////////////////////
              FOOTER
//////////////////////////////////////////////////*/

/* ===== FOOTER – Sin Miedo al Trading ===== */

.footer {
    background-color: var(--color-fondo-oscuro); /* #121A24 */
    color: #FFFFFF;
    padding: .2rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px solid var(--color-gris-claro);
}

.footer p {
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.footer a {
    color: var(--color-secundario);
    margin: 0 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--color-verde-oscuro);
}

.footer small {
    display: block;
    margin-top: 1rem;
    color: #AAAAAA;
    font-size: 0.8rem;
}

.social-icon:hover {
    color: #1abc9c; /* Verde institucional al hacer hover */
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}


