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

/* Reset básico */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}
/* Header fijo */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
main {
    margin-top: 120px;
}
/* Barra superior */
.top-bar {
    background-color: #f47c20;
    color: white;
    display: flex;
    justify-content: space-between; /* separa izquierda y derecha */
    align-items: center;
    padding: 5px 20px;
    flex-wrap: wrap;
  }
  
  /* Contenedor izquierdo (teléfonos + email) */
  .top-bar .left-info {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
  }
  
  /* Contenedor derecho (social links + clientes) */
  .top-bar .right-info {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  
  /* Iconos azules */
  .top-bar i {
    color: #2c2864; /* azul de la barra de navegación */
    margin-right: 5px;
  }
  
  /* Links */
  .top-bar a {
    color: white;
    text-decoration: none;
    font-size: 14px;
  }
.social-links {
    display: flex;
    gap: 10px;
}

/* --------------------------- */
/* Barra principal */
.main-nav {
    background-color: #2c2864;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
}

/* Logo a la izquierda */
.logo {
    height: 50px;
}

/* Menú a la derecha */
.main-nav nav {
    margin-left: auto; /* empuja el bloque menú+botón a la derecha */
    display: flex;
    align-items: center;
}

nav ul.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

nav ul.menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

nav ul.menu li.dropdown {
    position: relative;
}

nav ul.menu li.dropdown ul.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c2864;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    border-radius: 5px;
    z-index: 1000;
}

nav ul.menu li.dropdown:hover ul.dropdown-menu {
    display: block;
}

nav ul.menu li.dropdown ul.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: white;
}

nav ul.menu li.dropdown ul.dropdown-menu li a:hover {
    background-color: #f47c20;
}

/* Botón Contactar alineado con el menú */
.contact-btn {
    background-color: #f47c20;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 20px; /* espacio entre menú y botón */
}
.contact-btn:hover {
    background-color: #e66a10;
}

/* --------------------------- */
/* Botón hamburguesa */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* --------------------------- */
/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
    }

    .main-nav nav {
        margin-left: 0;
        width: 100%;
    }

    nav ul.menu {
        display: none;
        flex-direction: column;
        background: #2c2864;
        width: 100%;
        margin-top: 10px;
        padding: 10px 0;
    }

    nav ul.menu.active { display: flex; }

    nav ul.menu li.dropdown ul.dropdown-menu { 
        position: static; 
        padding-left: 20px; 
    }

    .menu-toggle { 
        display: block; 
        margin-left: auto; 
    }

    .contact-btn { 
        margin: 10px auto; 
    }
}

/* --------------------------- */
/* Secciones 
section {
    min-height: 95vh;
    padding: 0px 5%;
    border-bottom: 1px solid #ddd;
    position: relative;
    background: white;
}
    */
section h2 {
    margin: 5px 0;   /* menos espacio arriba y abajo */
    font-size: 2rem;
    color: #2c2864;
}

/* 🔧 MODIFICADO: todas las secciones usan el mismo layout de bloque
   para que texto y cards se apilen verticalmente */
/* Base de todas las secciones */
section {
    position: relative;
    min-height: 95vh;
    padding: 40px 5%;
    display: block;
    border-bottom: 1px solid #ddd;
    overflow: hidden;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    z-index: 0;
}

/* Fondo tenue tipo alerthornet.com/nuevo */
section.has-bg {
    /* capa blanca translúcida sobre la imagen */
    background-color: rgba(255, 255, 255, 0.60);

    /* TRUCO que da el efecto suave */
    background-blend-mode: lighten;
}

/* Contenido SIEMPRE por encima */
section.has-bg > * {
    position: relative;
    z-index: 2;
}

/* Textos para secciones con fondo (si querés blancos, activalo) */
/*
section.has-bg .text-content,
section.has-bg .text-content h2,
section.has-bg .text-content p {
    color: #ffffff;
}
*/
  /* Contenido siempre por encima */
  section .text-content {
    position: relative;
    z-index: 1;
    color: #fff; /* blanco por defecto en secciones con fondo */
  }

.text-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
}
.text-content p {
    text-align: justify;
    color: #2c2864;

}
.text-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c2864;
}
/* Clearfix del float dentro del texto */
.text-content::after {
    content: "";
    display: table;
    clear: both;
}
/* Video flotando */
.media-content {
    float: right;
    margin: 5px 0 10px 20px;
    width: 40%;
    max-width: 400px;
}
.video-container {
    position: relative;
    padding-bottom: 50%;
    height: 0;
    width: 100%;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .media-content {
      float: none;
      margin: 20px auto;
      width: 100%;
      max-width: 100%;
    }
}
/* Modal contacto */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 60px auto;
    padding: 20px 30px;
    padding-right: 15px;         /* ⭐ agrega espacio a la derecha */
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: left;
    border-top: 5px solid #f47c20;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 1rem;          /* tamaño legible */
    line-height: 1.6;         /* excelente lectura */
    letter-spacing: 0.2px;    /* micro separación para más claridad */
}

/* Fuente moderna solo para las ventanas modales */

.modal .close {
    color: #2c2864;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h2 {
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #2c2864;   /* tu color institucional */
}
.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    margin-top: 10px;
    font-weight: bold;
    color: #2c2864;
}
/* Modal con fondo suavizado igual a las secciones */
.modal-content.has-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    /* capa blanca translúcida */
    background-color: rgba(255, 255, 255, 0.70);
    background-blend-mode: lighten;
}

.modal-content input,
.modal-content textarea {
    margin-top: 5px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.modal-content button {
    margin-top: 15px;
    padding: 10px;
    background-color: #f47c20;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #e66a10;
}
.modal-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 16px;
}


/* --------------------------- */
/* Cards de soluciones */
/* --------------------------- */
.cards-title {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 10px;
    color: #2c2864;
}

/* 🔧 MODIFICADO: usa el máximo ancho posible y sirve para TODAS las secciones con cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
}

.solution-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Parte superior con imagen + gradiente + título */
.solution-card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.solution-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-card-image {
    transform: scale(1.06);
}

.solution-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1));
}

.solution-card-title {
    position: absolute;
    left: 18px;
    bottom: 16px;
    right: 18px;
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* cuerpo */
.solution-card-body {
    padding: 18px 20px 6px;
}

.solution-card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555555;
}

/* footer */
.solution-card-footer {
    margin-top: auto;
    padding: 0 20px 20px;
}

.solution-card-link {
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    color: #f47c20;
}

.solution-card-link:hover {
    text-decoration: underline;
}

/* sección soluciones (puede seguir existiendo, pero ya no es necesaria para las otras secciones) */
section#soluciones {
    min-height: auto;
    padding: 40px 5% 80px;
    display: block;
    border-bottom: none;
    background: #f5f5f7;
}

/* Imagen grande en el modal de soluciones */
.modal-image {
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}
/* 
/* Video responsivo en modal de soluciones 
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
} */



/* ------------------------------------------------------ */
/*  MODAL: presentación moderna del video (estilo nuevo)  */
/* ------------------------------------------------------ */

/* contenedor general del video */
.modal-video-wrapper {
    width: 50%;
    margin: 25px 0 15px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: rgba(0,0,0,0.05);
}

/* Relación 16:9 */
.modal-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

/* iframe responsivo */
.modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
}

/* Estilo extra si el modal usa fondo */
.modal-content.has-bg .modal-video-wrapper {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}

/* Ajustes en móviles */
@media (max-width: 768px) {
    .modal-video-wrapper {
        margin: 20px 0;
        border-radius: 10px;
    }
    .modal-video iframe {
        border-radius: 10px;
    }
}




/* Ajustes responsive */
@media (max-width: 768px) {
    .cards-grid {
        padding: 30px 0;
        gap: 18px;
    }

    .solution-card-title {
        font-size: 1.1rem;
    }
}
/* Responsive */
@media (max-width: 768px) {
    /* Barra superior más compacta y apilada */
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 12px;
    }

    .top-bar .left-info,
    .top-bar .right-info {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 13px;
    }

    /* Barra principal (logo + menú + botón) en varias filas */
    .main-nav {
        flex-wrap: wrap;
    }

    .main-nav nav {
        margin-left: 0;
        width: 100%;
    }

    /* Menú: oculto por defecto en móvil, en columna cuando se abre */
    nav ul.menu {
        display: none;
        flex-direction: column;
        background: #2c2864;
        width: 100%;
        margin-top: 10px;
        padding: 10px 0;
    }

    /* Cuando el JS agrega .active al ul#menu */
    nav ul.menu.active {
        display: flex;
    }

    /* Submenús: que no se desborden fuera de la pantalla */
    nav ul.menu li.dropdown ul.dropdown-menu {
        position: static;
        padding-left: 20px;
    }

    /* Botón hamburguesa visible y alineado a la derecha */
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* Botón Contactar centrado abajo en móvil */
    .contact-btn {
        margin: 10px auto;
    }
}
