/* ==========================================================================
   Estilos Base y Tipografía
   ========================================================================== */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header y Navegación
   ========================================================================== */
.main-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.logo-bold {
    font-weight: 800;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
}

/* ==========================================================================
   Sección Hero (Engrosada)
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f172a 100%);
    color: var(--white);
    padding: 90px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2c5282;
}

/* ==========================================================================
   Secciones de Contenido Denso
   ========================================================================== */
.density-section {
    padding: 70px 0;
}

.density-section h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.density-section h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 100%));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--light-bg);
    padding: 30px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 4px 4px 0;
}

.feature-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: #cbd5e0; /* Fallback */
}

blockquote {
    background-color: #fffaf0;
    border-left: 4px solid #dd6b20;
    padding: 20px;
    margin: 30px 0;
    font-size: 15px;
}

/* ==========================================================================
   Formularios
   ========================================================================== */
.contact-form {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 60px 0 20px 0;
    margin-top: 60px;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.main-footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}