/* =========================
   RESET & ESTILOS GLOBALES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333333;
    overflow-x: hidden;
}

/* =========================
   HEADER & NAVEGACIÓN
========================= */
.header {
    background-color: #1a1a1a;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #007bff;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1;
}

.logo-text h1 span {
    color: #007bff;
}

.logo-text span {
    display: block;
    color: #a0a0a0;
    font-size: 13px;
    margin-top: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #007bff;
}

/* =========================
   HERO / BANNER PRINCIPAL
========================= */
.hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
}

.hero-content {
    text-align: right;
    color: #ffffff;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-content h1 span {
    color: #007bff;
}

.hero-content p {
    font-size: 22px;
    color: #e0e0e0;
    margin-bottom: 25px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* =========================
   CONTENEDOR Y ESPACIAMIETO
========================= */
.contenedor {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* SECCIÓN PRESENTACIÓN E INICIO */
.presentacion {
    max-width: 1300px;
    margin: 50px auto 30px auto;
    padding: 0 20px;
    text-align: center;
}

.presentacion h2 {
    font-size: 38px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitulo {
    color: #555555;
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

/* SECCIÓN QUIÉNES SOMOS */
.quienes-somos {
    margin-top: 40px;
}

/* =========================
   TARJETAS (CARDS)
========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-top: 5px solid #007bff;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card h3 {
    color: #007bff;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.card p {
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
}

.card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.card li {
    color: #444444;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.imagen-card {
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

/* =========================
   FOOTER
========================= */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 50px 20px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    padding-bottom: 40px;
    border-bottom: 1px solid #333333;
}

.footer-info h3,
.footer-links h4,
.footer-contacto h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-info p,
.footer-contacto p {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-copy {
    text-align: center;
    padding-top: 20px;
    color: #777777;
    font-size: 13px;
}

/* =========================
   DISEÑO RESPONSIVO
========================= */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero-body {
        justify-content: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}