/* ===================================
   RESET Y CONFIGURACIÓN GENERAL
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   ENCABEZADO
   =================================== */

.header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.logo {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.95;
}

/* ===================================
   SECCIÓN HERO (Principal)
   =================================== */

.hero {
    padding: 80px 20px;
    background-color: #ffffff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    font-weight: 400;
}

/* ===================================
   SECCIÓN DE SERVICIOS
   =================================== */

.services {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #1e3a5f;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
    color: #2c5282;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e3a5f;
}

.service-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* ===================================
   SECCIÓN CTA (Call to Action)
   =================================== */

.cta {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #c9a961 0%, #d4af37 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

/* ===================================
   SECCIÓN DE CONTACTO
   =================================== */

.contact {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    color: #2c5282;
}

.contact-details {
    text-align: left;
}

.contact-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2c5282;
}

/* ===================================
   PIE DE PÁGINA
   =================================== */

.footer {
    background-color: #1e3a5f;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.copyright {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ===================================
   ANIMACIONES
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets */
@media (max-width: 768px) {
    .logo-image {
        max-width: 300px;
        padding: 15px 25px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-item {
        justify-content: center;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .header {
        padding: 60px 20px;
    }

    .logo-image {
        max-width: 250px;
        padding: 12px 20px;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .hero, .services, .cta, .contact {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1.05rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .contact-details {
        text-align: center;
    }
}


