/* ------------------------------ */
/*        ESTILOS GENERALES       */
/* ------------------------------ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif;
}

body {
    background: #f7f8fc; /* Gris perla claro */
    color: #444; /* Gris suave */
    line-height: 1.7;
}

/* ------------------------------ */
/*             HEADER             */
/* ------------------------------ */

.header {
    width: 100%;
    padding: 18px 30px;
    display: flex;
    justify-content: center;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e6e9f0;
    box-shadow: 0 1px 4px rgba(200, 200, 200, 0.35);
}

.logo {
    width: 165px;
    transition: 0.3s;
}

.logo:hover {
    transform: scale(1.04);
}

/* ------------------------------ */
/*              HERO              */
/* ------------------------------ */

.hero {
    min-height: 70vh;
    background: linear-gradient(145deg, #ffe5e5, #ffd1d1, #ffbcbc);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 1.2s ease-in-out;
    border-bottom: 4px solid #d62828;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #b81414;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 850px;
    color: #6d1a1a;
    opacity: 0.95;
}

/* ------------------------------ */
/*             SECCIONES          */
/* ------------------------------ */

.section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: auto;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 35px;
    text-align: center;
    color: #d62828;
    letter-spacing: 0.5px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: "";
    width: 70px;
    height: 4px;
    background: #d62828;
    display: block;
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.85;
}

.texto-nosotros {
    font-size: 1.15rem;
    color: #555;
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    border: 1px solid #e6e8ef;
    box-shadow: 0 6px 20px rgba(210, 210, 210, 0.25);
    line-height: 1.8;
    transition: 0.3s;
}

.texto-nosotros:hover {
    transform: scale(1.008);
}

/* ------------------------------ */
/*            SERVICIOS           */
/* ------------------------------ */

.servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e6e7f0;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(215, 215, 215, 0.30);
}

.card:hover {
    transform: translateY(-8px);
    border-color: #d62828;
    box-shadow: 0 10px 24px rgba(214, 40, 40, 0.20);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #d62828;
    font-weight: 600;
}

.card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ------------------------------ */
/*             FOOTER             */
/* ------------------------------ */

.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    color: #777;
    background: #ffffff;
    border-top: 1px solid #e1e4eb;
    font-size: 0.95rem;
}

/* ------------------------------ */
/*          ANIMACIONES           */
/* ------------------------------ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------ */
/*            RESPONSIVO          */
/* ------------------------------ */

@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .hero p  { font-size: 1rem; }
    .section-title { font-size: 2rem; }
}

