﻿/* 1. БАЗОВІ НАЛАШТУВАННЯ (Para que todo se calcule correctamente / Щоб усе рахувалося правильно) */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box; /* Chrome, Safari */

    -moz-box-sizing: border-box;    /* Firefox */
    box-sizing: border-box;
}

:root {
    --dark-gray: #2C3E50;
    --mint: #4BA891;
    --fuchsia: #E74C7D;
    --yellow: #FBCF61;
    --font-titles: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- УНІФІКАЦІЯ ЗАГОЛОВКІВ (Uniformización de los títulos / Уніфікація заголовків) --- */
h1, h2, h3 {
    font-family: var(--font-titles);
    font-weight: 700;
    color: var(--dark-gray);
}

h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1rem;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: #fff;
    padding-top: 80px; /*  Este margen equivale a la altura del menú / Цей відступ рівний висоті меню */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. (Navegación / Навігація) */
header {
    background: #fff;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    /* Hacemos que el menú sea fijo / Робимо меню фіксованим */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Para que el menú siempre esté encima / Щоб меню завжди було поверх елементів */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px; /* Altura reducida para menú fijo / Трохи зменшена висота для фіксованого меню */
    width: auto;
    display: block;
}

.nav-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap; /* Позволяет ссылкам переноситься, если экран очень узкий */
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    transition: 0.3s;
}

/* Estilo para enlace activo / Стиль для активного посилання */
.nav-links a.active {
    color: var(--mint); 
    border-bottom: 2px solid var(--mint);
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--fuchsia);
}

/* 3. HERO (Pantalla principal con fondo / Головний екран з фоном) */
#hero {
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/hero-background.png'); 
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #2C3E50;
    color: white;
}

/* Excepción para Hero / Виняток для Hero */
#hero h1 {
    color: white; 
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--fuchsia); 
}

/* Estilización de la sección de calidad / Стилізація секції якості */
.text-block-center {
    text-align: center;
    margin-bottom: 50px;
}

.quality-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
}

.quality-item {
    flex: 1;
    text-align: center;
}

/* Contenedor para unificar imágenes / Контейнер для однакових картинок */
.img-container {
    width: 100%;
    height: 200px; /* Altura fija para todos / Фіксована висота для всіх */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #fff; /* Fondo blanco para uniformidad / Білий фон для однаковості */
    border-radius: 15px;
    padding: 10px;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Imagen se ajusta sin recorte / Картинка вписується без обрізання */
    transition: transform 0.3s ease;
}

.img-container img:hover {
    transform: scale(1.1); /* Aumento ligero al pasar el cursor / Легке збільшення при наведенні */
}

.quality-item p {
    font-weight: 600;
    color: var(--dark-gray);
    font-family: var(--font-body);
}

/* Animación / Анімація */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: slideUpFade 1.2s ease-out forwards;
}

/*Secciones y grids / Секції та гріди/
.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: #f9f9f9; }

.audiencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    background: #fff;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-10px); }

/* Colores de las tarjetas según rol UX / Кольори карток відповідно до ролі UX */
.card-mint { border-top: 8px solid var(--mint); }
.card-yellow { border-top: 8px solid var(--yellow); }
.card-fuchsia { border-top: 8px solid var(--fuchsia); }

/* Imágenes / Картинки */
img {
    max-width: 100%; /* Imagen nunca se desbordará / Картинка ніколи не вийде за межі */
    height: auto;
    display: block;
}

.img-rounded {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.full-width-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover; /* Importante: mantiene proporciones / Важливо: зберігає пропорції */
    border-radius: 15px;
}

/* Botones / Кнопки */
.btn-cta {
    background-color: var(--fuchsia);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-titles);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cta:hover {
    background-color: #c53a66;
    transform: scale(1.05);
}

/* Pie de página / Футер */
footer {
    background: var(--dark-gray);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.doc-link {
    color: var(--mint);
    display: inline-block;
    margin-top: 10px;
}

/* Estilos para la página Servicios / Стилі для сторінки Servicios */
.intro-services h1 {
    margin-bottom: 10px;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--mint); /* Color de marca para confianza / Твій фірмовий колір для довіри */
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 20px;
    border-bottom: 5px solid var(--dark-gray);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight-mint {
    border-bottom-color: var(--mint);
    background: #f0f9f7;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Estilización del video / Стилізація відео */
.video-container {
    text-align: center;
    margin: 50px 0;
}

.video-preview-box {
    position: relative;
    display: inline-block;
    max-width: 700px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.play-button-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--fuchsia); /* Color de acento / Твій акцентний колір */
    color: white;
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
}

.video-preview-box:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--dark-gray);
}

/* Bloque final / Фінальний блок */
.legal-box {
    background: var(--dark-gray);
    color: white;
    padding: 60px;
    border-radius: 30px;
    text-align: center;
}

.legal-box h2 { color: var(--mint); margin-bottom: 20px; }
.legal-box p { margin-bottom: 30px; opacity: 0.9; }

/* Estilos para la página completa Servicios / Стилі для повної сторінки Servicios */
.intro-lead { font-size: 1.1rem; margin-top: 10px; border-left: 4px solid var(--fuchsia); padding-left: 15px; }

.importance-box { background: #f4f7f6; padding: 30px; border-radius: 15px; margin: 30px 0; }
.importance-box h2 { margin-bottom: 15px; }

.highlight-section { background: var(--mint); color: white; padding: 40px; border-radius: 20px; text-align: center; margin: 40px 0; }
.highlight-section h2 { color: white; }

.main-list > li { margin-bottom: 25px; font-size: 1.1rem; color: var(--dark-gray); }
.main-list ul { margin-top: 10px; list-style-type: circle; padding-left: 40px; }
.main-list li b { color: var(--dark-gray); }

/* Sección de video / Відео секція */
.video-section { text-align: center; margin: 50px 0; padding: 40px; border: 2px dashed #ccc; border-radius: 20px; }
.video-preview { position: relative; display: inline-block; margin-top: 15px; border-radius: 10px; overflow: hidden; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--fuchsia); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* Legal info (Información legal / Юридична інформація) */
.legal-info { background: #fff; border: 1px solid #eee; padding: 30px; border-radius: 15px; margin-bottom: 40px; }
.legal-info p { margin-bottom: 15px; }

/* Pricing grid (Grid de precios / Сітка цін) - Mejorado para cross-platform */
.price-grid { 
    
display: -webkit-box;
    
display: -ms-flexbox;
    
display: flex; 
    
-ms-flex-wrap: wrap;
    
flex-wrap: wrap; /* Чтобы карточки не сжимались, а переносились */
    
gap: 20px; 
    
margin: 30px 0; 
    
justify-content: center;
}



.price-item { 
    
background: white; 
    
padding: 25px; 
    
border-radius: 15px; 
    
-webkit-box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    
box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    
border-top: 6px solid var(--fuchsia); /* Розовая полоса сверху */
    
-webkit-box-flex: 1;
    
-ms-flex: 1 1 calc(33.333% - 20px);
    
flex: 1 1 calc(33.333% - 20px); /* Три колонки, которые станут одной на мобильных */
    
min-width: 280px; /* Чтобы карточка не была слишком узкой */
    
display: flex;
    
flex-direction: column;

}

/* CTA wrapper (Sección de llamada a la acción / Блок заклику до дії) */
.cta-wrapper { text-align: center; margin-top: 40px; background: #eee; padding: 30px; border-radius: 20px; }

/*Margen del botón al final / Відступ для кнопки внизу сторінки Servicios  */
.cta-wrapper .btn-cta {
    margin-top: 30px; /* Movemos el botón hacia abajo / Зсуваємо кнопку вниз від тексту */
    display: inline-block; /* ГGarantiza que se aplique el margen / Гарантує застосування відступу */
}

/* Propuesta de Valor / Пропозиція цінності*/
.value-section { margin-bottom: 60px; }

.subtitle { 
    color: var(--mint); 
    font-weight: 600; 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
}

/* Imagen corregida con libros / Виправлене зображення з книгами*/
.image-full-width img {
    display: block;
    max-width: 600px; /* Tamaño limitado / Обмежили розмір */
    width: 100%;
    height: auto;
    margin: 30px auto; /* Centrado / Центруємо */
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.pillar-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--fuchsia);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bg-light-box {
    background: #f4f7f6;
    padding: 40px;
    border-radius: 20px;
}

.problems-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.problem-card, .solution-card {
    flex: 1;
    padding: 30px;
    border-radius: 15px;
}

.problem-card { background: #fff5f5; border: 1px solid #feb2b2; }
.solution-card { background: #f0fff4; border: 1px solid #9ae6b4; }

.detailed-list {
    margin: 20px 0;
    padding-left: 20px;
}

/* Estilos para ventana modal / Стилі для модального вікна */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(44, 62, 80, 0.8); /* Gris oscuro con transparencia / Темно-сірий з прозорістю */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark-gray);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal-body input {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
}

/* Caja de resultados / Блок результату */
.result-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--mint); /* Menta para éxito / М’ятний для успіху */
    color: white;
    border-radius: 15px;
    text-align: center;
    animation: slideUpFade 0.5s ease;
}

#precioFinal {
    font-size: 2rem;
    font-weight: bold;
}

/* --- RESPONSIVIDAD (Ajustes para móviles y tablets) --- */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .price-item {
        -ms-flex: 1 1 calc(50% - 20px);
        flex: 1 1 calc(50% - 20px); /* По две карточки в ряд */
    }
}

/* Мобильные телефоны (до 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Увеличиваем отступ, так как меню станет выше */
    }
    
    nav {
        flex-direction: column; /* Логотип сверху, меню снизу */
        padding: 10px 0;
    }

    .nav-links {
        margin-top: 15px;
        margin-left: 0;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px; /* Уменьшаем отступы между кнопками меню */
    }

    .price-item {
        -ms-flex: 1 1 100%;
        flex: 1 1 100%; /* Карточки цен во всю ширину */
    }

    .problems-grid {
        flex-direction: column; /* Блоки проблем и решений друг под другом */
    }
}