/* =====================
   VARIABLES & COLORS
   ===================== */

:root {
    --primary: #1B4D7D;
    --red: #C41E3A;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* =====================
   RESET & DEFAULTS
   ===================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================
   UTILITY CLASSES
   ===================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.max-w-4xl {
    max-width: 56rem;
    margin: 0 auto;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-bold {
    font-weight: 700;
}

.color-primary {
    color: var(--primary);
}

.color-red {
    color: var(--red);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-red {
    background-color: var(--red);
}

/* =====================
   NAVIGATION
   ===================== */

.nav-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo-container {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.logo-text .red {
    color: var(--red);
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--primary);
    transition: color 0.3s ease;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--red);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* =====================
   BUTTONS
   ===================== */

.btn-primary {
    background-color: var(--red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    border: 2px solid var(--red);
    color: var(--red);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--red);
    color: var(--white);
}

/* =====================
   SECTIONS
   ===================== */

section {
    padding: 3rem 0;
}

.section-white {
    background-color: var(--white);
}

.section-gray {
    background-color: var(--gray-50);
}

.section-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* =====================
   HERO SECTION
   ===================== */

.hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
    background-color: var(--gray-50);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.hero-placeholder {
    background: linear-gradient(135deg, rgba(27, 77, 125, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    text-align: center;
}

.placeholder-text {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-buttons {
        flex-direction: row;
    }
}

/* =====================
   GRID LAYOUTS
   ===================== */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* =====================
   VALUES & CARDS
   ===================== */

.filosofia-box {
    background-color: var(--gray-50);
    border-left: 4px solid var(--red);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.filosofia-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filosofia-text {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.4;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.value-card {
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.1);
}

.value-emoji {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.value-title {
    margin-bottom: 0.5rem;
}

.value-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.values-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.value-item-horizontal {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.value-item-horizontal .value-emoji {
    margin-bottom: 0;
    font-size: 2.5rem;
    min-width: 60px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================
   TIMELINE
   ===================== */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: var(--gray-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray-600);
}

.proceso-info {
    margin-top: 3rem;
    background-color: var(--gray-100);
    border-left: 4px solid var(--red);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.proceso-elementos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .proceso-elementos {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
}

/* =====================
   SERVICIOS
   ===================== */

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.servicio-item {
    padding: 1.5rem;
    border-left: 4px solid var(--red);
    background-color: var(--white);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.servicio-item:hover {
    background-color: var(--gray-50);
    transform: translateX(5px);
}

.servicio-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .servicios-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .servicio-item {
        padding: 1rem;
    }

    .servicio-item h3 {
        font-size: 0.95rem;
    }
}

/* =====================
   PRESUPUESTO
   ===================== */

.presupuesto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.presupuesto-item {
    background: linear-gradient(135deg, rgba(27, 77, 125, 0.05) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.presupuesto-number {
    width: 50px;
    height: 50px;
    background-color: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.presupuesto-info {
    background-color: var(--gray-50);
    border-radius: 0.75rem;
    padding: 2rem;
    border-left: 4px solid var(--red);
}

.presupuesto-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.presupuesto-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.presupuesto-check div {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .presupuesto-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .presupuesto-checklist {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* =====================
   FAQ
   ===================== */

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--red);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.1);
}

.faq-item h3 {
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--gray-600);
}

.faq-info {
    background-color: var(--gray-100);
    border-left: 4px solid var(--red);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* =====================
   CONTACTO
   ===================== */

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contacto-item {
    text-align: center;
}

.contacto-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contacto-cta {
    background: linear-gradient(135deg, rgba(27, 77, 125, 0.05) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.contacto-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.redes-sociales {
    background-color: var(--gray-50);
    border-radius: 0.75rem;
    padding: 2rem;
}

.redes-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.red-link {
    font-weight: 600;
    color: var(--red);
    transition: color 0.3s ease;
}

.red-link:hover {
    color: var(--primary);
}

@media (min-width: 768px) {
    .contacto-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contacto-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .redes-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

/* =====================
   FOOTER
   ===================== */

.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section h3,
.footer-section p {
    margin: 0;
}

.footer-section {
    text-align: center;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.9;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* =====================
   ANIMATIONS
   ===================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeIn 0.6s ease-out;
}

/* =====================
   ACCESSIBILITY
   ===================== */

:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
