/* VARIABLES Y RESETEO */
:root {
    --azul-oscuro: #125485;
    --azul-medio: #2986BE;
    --azul-claro: #4DADD9;
    --azul-brillante: #3BBDF8;
    --blanco-humo: #f8f5f2;
    --negro-suave: #0B0708;
    --blanco: #FFFFFF;
    --gris-texto: #555;
    --negro: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--blanco);
    color: var(--negro-suave);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; }

/* ESTILOS DE SECCIONES */
.section-title {
    font-size: 1.8rem;
    color: var(--negro-suave);
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--gris-texto);
    margin-bottom: 30px;
}

/* HERO SECTION */
.hero-section {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 18px 0;
    margin-bottom: 20px;
}

.hero-title-main {
    text-align: left;
    color: var(--blanco);
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text-side {
    flex: 1.5;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--blanco);
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--blanco);
    color: var(--blanco);           
}

.btn-outline:hover {
    background-color: var(--blanco);
    color: var(--azul-oscuro);
}

.hero-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    max-height: 300px;
    width: auto;
    max-width: 100%;
}

/* para celulares */
@media (max-width: 768px) {
    .hero-title-main { font-size: 2rem; }
    .hero-grid {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text-side { text-align: center; }
    .hero-buttons { justify-content: center; }
}

/* botones */
.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--azul-brillante);
    color: var(--blanco);
}

.btn-primary:hover {
    background-color: var(--azul-claro);
    color: var(--blanco);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--blanco);
    color: var(--blanco);
}

.btn-outline:hover {
    background-color: var(--blanco);
    color: var(--azul-oscuro);
}

/* PANTALLA SERVICIOS */

.solutions-section {
    background-color: #fefbf8;
    padding: 40px 0;
}

.single-card-container {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-top: 40px;
}

.featured-card {
    text-align: center; 
    max-width: 900px;   
    width: 100%;
    padding: 40px;      

    background-color: var(--blanco);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--azul-brillante);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.icons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;    
    gap: 20px;              
    margin-bottom: 25px;
}

.plus-sign {
    font-size: 2rem;
    color: var(--azul-brillante);
    font-weight: bold;
    opacity: 0.5;
}

/* para celulares */
@media (max-width: 480px) {
    .icons-wrapper img { width: 60px; }
    .plus-sign { font-size: 1.5rem; }
    .featured-card { padding: 25px; }
}

/* NOVEDADES */
.news-section {
    padding: 60px 0;
    background-color: var(--blanco-humo);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    margin-top: 15px;
    font-weight: bold;
    color: var(--negro-suave);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--negro-suave);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 5px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--azul-brillante);
}

/* boton login */
.btn-nav {
    background-color: var(--azul-brillante);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-nav:hover {
    background-color: var(--azul-medio);
}

/* ESTILOS DEL MENU DESPLEGABLE */
.dropdown-item {
    position: relative;
}

.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
    border-top: 3px solid var(--azul-brillante);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background-color: var(--blanco-humo);
    color: var(--azul-oscuro);
}

.separator {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

.dropdown-item:hover .dropdown-menu,
.dropdown-item.activo .dropdown-menu {
    display: block;
}

.logo-img {
    max-height: 50px;
    width: auto;     
    display: block;  
}

/* seccion de novedades */
.news-section {
    padding: 60px 0;
    background-color: var(--blanco-humo); 
}

/* seccion tutoriales */
.tutorials-section {
    padding: 40px 0;
    background-color: var(--blanco);
    border-top: 1px solid #eee;
}

.tutorials-title{
    color: var(--azul-medio);
    font-size: 1.8rem;
}

.tutorials-subtitle{
    color: var(--negro-suave);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ESTILOS DEL FORMULARIO DE CONTACTO */

.contact-section {
    padding: 30px 0;
    background-color: var(--blanco-humo);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-card {
    background-color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--azul-brillante);
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--azul-oscuro);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    background-color: white;
    border-color: var(--azul-brillante);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 189, 248, 0.1);
}

textarea.form-input {
    resize: vertical;
}

.btn-submit {
    background-color: var(--azul-oscuro);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--azul-medio);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

/* para celulares */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-card {
        padding: 20px;
    }
}

/* PANTALLA DE LA EMPRESA */

.company-section {
    padding: 30px 0;
    background-color: var(--blanco-humo);
}

.company-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    margin-top: 30px;
}

.company-title{
    margin-left: 20px;
    font-size: 2rem;
}

.company-text {
    flex: 2;
}

.company-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.history-img {
    max-width: 100%;
    height: auto;
    
}

.text-paragraph {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 5px;
}

.subsection-title {
    font-size: 1.4rem;
    color: var(--azul-oscuro);
    margin-bottom: 15px;
    margin-top: 10px;
    margin-left: 20px;
}

.modern-separator {
    height: 2px;
    background-color: var(--azul-claro);
    width: 210px;
    margin: 30px 0;
    margin-left: 20px;
}

/* para celular */
@media (max-width: 768px) {
    .company-grid {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .company-text {
        text-align: center;
    }
    .modern-separator {
        margin: 30px auto;
    }
}

/* ESTILOS PAGINA DE SERVICIOS */

.service-section {
    padding: 20px;
    background-color: var(--blanco-humo);
}

.service-title{
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    text-align: left;
    margin-bottom: 5px;
}

.service-paragraph{
    font-size: 1.1rem;
    color: var(--negro);
    line-height: 1.8;
    margin-top: 0;
    margin-bottom:20px;
}

/* Estilo para los títulos */
.subsection-title {
    font-size: 1.5rem;
    color: var(--azul-oscuro); 
    font-weight: bold;
    display: flex;             
    align-items: center;
    margin-top: 30px;
    margin-bottom: 5px;
}

/* Estilo específico para los iconos */
.subsection-title i {
    color: var(--azul-brillante); 
    margin-right: 12px;           
    font-size: 1.3rem;
    padding-left: 20px;
}

.text-paragraph {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    padding: 20px;
}

.intro-grid {
    display: flex;      
    align-items: center;
    justify-content: space-between;
    
}

.intro-text {
    flex: 1.5;
}

.intro-image {
    flex: 0.5;
    display: flex;
    justify-content: center;
}

/* Estilo de la imagen*/
.support-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    }

/* En celular */
@media (max-width: 768px) {
    .intro-grid {
        flex-direction: column-reverse;
    }
    .intro-text {
        text-align: center;
    }
}

/* --- ESTILOS PÁGINA CLIENTES --- */

.clients-section {
    padding: 60px 15px;
    background-color: var(--blanco-humo);
}

.clients-header {
    display: flex;          
    align-items: center;    
    justify-content: space-between;
    gap: 40px;          
    margin-bottom: 30px;
    text-align: left;   
}

.header-text-side {
    flex: 1;
}

.header-text-side .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--azul-oscuro);
}

.header-text-side .section-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
}

.header-image-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.clients-hero-img {
    max-width: 100%;
    max-height: 250px;  
    border-radius: 10px;
    object-fit: cover;
}

/* celular */
@media (max-width: 768px) {
    .clients-header {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .header-image-side {
        justify-content: center;
        width: 100%;
    }
    
    .header-text-side .section-subtitle {
        margin: 0 auto;
    }
}

.client-category-card {
    background-color: var(--blanco);
    border-radius: 15px;       
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    margin-bottom: 50px;      
    border: 1px solid #eaeaea;
    overflow: hidden;         
}

.category-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    background-color: var(--azul-oscuro);
}

.category-header:hover {
    background-color: var(--azul-medio);
}

.category-header h3 {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--blanco);
    font-size: 1.5rem;
}

/* La flechita */
.arrow-icon {
    transition: transform 0.3s ease;
    font-size: 1rem;
    margin-left: 15px;
}

/* ESTADO OCULTO */
.accordion-content {
    display: none;
}

/* ESTADO VISIBLE */
.accordion-content.is-open {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.arrow-icon.rotate {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-header h3 i {
    color: var(--blanco);
    font-size: 1.5rem;
}

.logos-wrapper {
    flex-wrap: wrap; 
    justify-content: center;
    gap: 15px;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.logo-item {
    width: 180px; 
    height: 100px;
    align-items: center;     
    justify-content: center; 
    margin: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease;
    display: flex;
}

.logo-item img {
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- ESTILOS PÁGINA DE PRODUCTOS --- */

.products-section {
    padding: 60px 0;
    background-color: var(--blanco-humo);
}

.products-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* LA BOTONERA */
.modules-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Estilo de cada botón */
.module-btn {
    background-color: #ecf8fe;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    color: #282828;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.module-btn i {
    font-size: 1.2rem;
    color: var(--azul-medio);
}

/* Estado Activo del botón (Cuando está seleccionado) */
.module-btn.active, .module-btn:hover {
    background-color: var(--azul-oscuro);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.module-btn.active i, .module-btn:hover i {
    color: var(--azul-brillante); /* El ícono cambia de color */
}

/* CONTENEDORES DE CONTENIDO */
.module-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.active-content {
    display: block;
}

.content-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--blanco);
    padding: 40px;
    border-radius: 20px;
}

.text-side {
    flex: 1;
}

.text-side h3 {
    color: var(--azul-oscuro);
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #444;
}

.feature-list i {
    color: var(--azul-brillante);
    margin-right: 10px;
}

.img-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.img-side img {
    max-width: 70%;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        flex-direction: column;
    }
    .module-btn {
        width: 100%; /* Botones anchos en celular */
        justify-content: center;
    }
}

/* BOTONES DESCARGA */
.downloads-area {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap; /* Para que en celular se pongan uno abajo del otro */
}

.download-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

/* Efecto de elevación al pasar el mouse */
.download-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Estilo específico para el botón PDF (Rojo) */
.download-cta.pdf {
    background-color: #ffebee; /* Fondo rojizo muy suave */
    color: #d32f2f;            /* Texto rojo fuerte */
    border: 1px solid #ffcdd2;
}

.download-cta.pdf i {
    font-size: 1.2rem;
}

/* Estilo específico para la DEMO (Azul/Verde) */
.download-cta.demo {
    background-color: var(--azul-oscuro);
    color: white;
    border: 1px solid var(--azul-oscuro);
}

.download-cta.demo i {
    color: var(--azul-brillante); /* El ícono resalta */
}

/* --- ESTILOS DEL MODAL DE LOGIN --- */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000; /* Para que quede arriba de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo negro semitransparente */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Efecto borroso moderno en el fondo */
}

.modal-box {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--azul-oscuro);
}

.modal-box h3 {
    margin-top: 0;
    color: var(--azul-oscuro);
    text-align: center;
    margin-bottom: 10px;
}

.modal-box p {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Estilos del Formulario */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Para que el padding no agrande el ancho */
}

.input-group input:focus {
    border-color: var(--azul-brillante);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--azul-oscuro);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--azul-brillante);
}


/* ESTILOS PANEL DE CLIENTES */

.dashboard-section { 
    padding: 40px 0; 
    background-color: #f4f6f9; 
    min-height: 80vh; 
}
    
.dashboard-top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    background: white; 
    padding: 15px 25px; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.user-welcome { 
    font-size: 1.1rem; 
    color: var(--azul-oscuro); 
    font-weight: 600; 
}

.logout-btn { 
    background-color: #ffebee; 
    color: #d32f2f; 
    padding: 8px 15px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem; 
    transition: all 0.3s; 
    border: 1px solid #ffcdd2; 
}

.logout-btn:hover { 
    background-color: #ef5350; 
    color: white; 
}

.dashboard-grid { 
    display: flex; 
    gap: 30px; 
}
    
.dashboard-sidebar { 
    width: 250px; 
    flex-shrink: 0; 
}

.sidebar-menu { 
    background: white; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.sidebar-title { 
    background-color: var(--azul-oscuro); 
    color: white; 
    padding: 15px; 
    margin: 0; 
    font-size: 1rem; 
    text-align: center; 
}

.menu-link { 
    display: block; 
    padding: 15px 20px; 
    color: #555; 
    text-decoration: none; 
    border-bottom: 1px solid #eee; 
    transition: all 0.2s; 
    font-weight: 500; 
}

.menu-link:hover, .menu-link.active { 
    background-color: #e3f2fd; 
    color: var(--azul-oscuro); 
    padding-left: 25px; 
    border-left: 4px solid var(--azul-brillante); 
}

.menu-link i { 
    margin-right: 10px; 
    width: 20px; 
    text-align: center; 
}

.dashboard-content { 
    flex: 1; 
    background: white; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.download-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
}

.download-table th { 
    background-color: var(--azul-medio); 
    color: white; 
    padding: 12px; 
    text-align: left; 
    border-radius: 5px 5px 0 0; 
}

.download-table td { 
    padding: 12px; 
    border-bottom: 1px solid #eee; 
    color: #444; 
}

.download-table tr:hover { 
    background-color: #f9f9f9; 
}

.file-link { 
    font-weight: bold; 
    color: var(--azul-brillante); 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
}

.file-link:hover { 
    text-decoration: underline; 
}

@media (max-width: 768px) {
    .dashboard-grid { flex-direction: column; }
    .dashboard-sidebar { width: 100%; }
}

/* --- ESTILOS DE ADMIN --- */

/* Cajas de Alerta */
.alert-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-box.error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.alert-box.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.section-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--azul-oscuro);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.admin-card {
    width: 100%;
}

.admin-card.form-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    height: fit-content;
    max-width: 450px;
}

.admin-card h3 {
    margin-top: 0;
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.admin-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.admin-input:focus {
    border-color: var(--azul-brillante);
    outline: none;
}

.btn-save {
    background: var(--azul-oscuro);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    background: var(--azul-brillante);
    transform: translateY(-2px);
}

.status-badge {
    font-size: 0.8rem;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #c8e6c9;
}

/* Botones de Acción en la Tabla (Editar y Borrar) */
.btn-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 6px 14px;
    gap: 6px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 3px;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-edit {
    background-color: #e3f2fd;
    color: var(--azul-brillante);
}
.btn-edit:hover {
    background-color: var(--azul-brillante);
    color: white;
}

.btn-delete {
    background-color: #ffebee;
    color: #d32f2f;
}
.btn-delete:hover {
    background-color: #d32f2f;
    color: white;
}

/* Estado de edición en el formulario */
.form-card.editing {
    border: 2px solid var(--azul-brillante);
    background-color: #f0f8ff;
}

/* --- NUEVA SECCIÓN DE HISTORIAS DE CLIENTES --- */
.historias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px; /* Espacio antes de los acordeones */
}

.historia-card {
    background-color: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.historia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Contenedor multimedia (Foto o Video) */
.historia-media {
    height: 240px;
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Estilo si es una imagen de fondo */
.historia-img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Estilo si es una etiqueta <video> */
.historia-video-tag {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.historia-logo-flotante {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 200px;
    left: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid white;
    z-index: 2;
}

.historia-logo-flotante img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.historia-text {
    padding: 60px 30px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.historia-text h3 {
    margin: 0 0 15px 0;
    color: var(--azul-oscuro);
    font-size: 1.5rem;
    line-height: 1.2;
}

.historia-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}


.historia-cita {
    margin-top: auto;
    font-style: italic;
    color: var(--azul-medio);
    background: #f4f9fc;
    padding: 15px 20px;
    border-left: 4px solid var(--azul-brillante);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.historia-video-inline {
    width: 100%;
    max-height: 380px;
    background-color: transparent;
    border-radius: 10px;
    object-fit: contain;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}