/* RESET LOCAL Y PREVENCIÓN DE SCROLL HORIZONTAL */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: #0f172a;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* CONTENEDOR PRINCIPAL */
.inicio-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* SECCIÓN HERO */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    margin-bottom: 3.5rem;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CORRECCIÓN PRINCIPAL PARA MÓVIL EN EL H1 */
.hero h1 {
    /* Ajusta el tamaño dinámicamente entre 1.7rem en móvil y 2.5rem en escritorio */
    font-size: clamp(1.7rem, 6vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.25;
    
    /* Obliga a romper palabras largas como "Responsabilidad" si no caben */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* BOTONES CON ESTADOS HOVER */
.btn-primary:link,
.btn-primary:visited,
.btn-primary {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background-color: #10b981;
    color: #0f172a !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.btn-secondary:link,
.btn-secondary:visited,
.btn-secondary {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background-color: #334155;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* SECCIÓN DIVISIONES Y TARJETAS */
.servicios-container h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #10b981;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #10b981;
}

.card.destacado {
    border: 2px solid #10b981;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   AJUSTES ESPECÍFICOS PARA PANTALLAS MÓVILES (< 576px)
   ========================================================================== */
@media (max-width: 576px) {
    .inicio-main {
        padding: 1.25rem 0.75rem;
    }

    .hero {
        padding: 2rem 1rem; /* Reduce padding lateral para dejar más espacio al texto */
        margin-bottom: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Botones a ancho completo en móviles para mejor usabilidad */
        text-align: center;
    }
}