/* 
   ===========================
   ESTILOS BASE Y VARIABLES
   ===========================
*/

/* Variables */
:root {
    --primary-color: #8c9eff; /* Cambiado de #3f51b5 para contraste AAA (6.5:1 sobre fondos oscuros) */
    --secondary-color: #5c6bc0;
    --accent-color: #4caf50;
    --dark-color: #1a1a1a;
    --light-color: #fff;
    --gray-color: #f8f9fa;
    --dark-gray: #333;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --font-primary: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}


body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Contenedores */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mejora para el logo */
.logo {
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
}

.logo-img {
    max-width: 110px;
    height: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Estilos para el logo en el footer */
.footer-logo img {
    max-width: 350px;
    height: auto;
    margin-bottom: 25px;
    display: block;
}

.footer-description {
    margin-top: 15px;
    padding-left: 10px;
}

/* Botones generales */
.btn-cta {
    display: inline-block;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 12px 30px;
    border: 2px solid var(--dark-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-more {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 4px;
}

.btn-more:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-more:hover {
    color: var(--light-color);
}

.btn-more:hover:before {
    left: 0;
}

/* Encabezados de sección */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #595959; /* Cambiado de #666 para contraste AAA (7:1 sobre blanco) */
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.7;
}

/* Media queries para responsividad */
@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Asegurar que el menú tenga el mismo tamaño en todas las páginas */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--light-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* Estilos para imágenes de fondo */
.background-image {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Clases de utilidad para menús */
.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Estilos para botones CTA rojos */
.cta-red-bg {
    background-color: #e60000;
    box-shadow: 0 10px 20px rgba(230, 0, 0, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cta-red-bg:hover {
    background-color: #ff1a1a;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.3);
}

.cta-red-bg h3 {
    color: white;
    font-weight: 600;
}

.cta-red-bg .btn-cta {
    background-color: white;
    border-color: white;
    color: #e60000;
    font-weight: 700;
}

.cta-red-bg .btn-cta:hover {
    background-color: transparent;
    color: white;
} 