/* Variables de color */
:root {
    --red-light: #FFCCCC; /* Rojo claro */
    --red-medium: #FF6666; /* Rojo medio para acentos */
    --grey-light: #F5F5F5; /* Gris muy claro para fondos */
    --grey-medium: #E0E0E0; /* Gris medio para bordes o textos secundarios */
    --grey-dark: #666666; /* Gris oscuro para texto principal */
    --white: #FFFFFF; /* Blanco puro */
    --green-whatsapp: #25D366; /* Verde de WhatsApp */
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--grey-light);
    color: var(--grey-dark);
    line-height: 1.6;
}

a {
    color: var(--red-medium);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--red-medium);
    text-align: center;
    margin-bottom: 20px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--grey-medium);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-left .logo {
    max-height: 160px; /* Ajusta el tamaño del logo */
    width: auto;
}

.header-right {
    text-align: center;
    font-size: 1.1em;
    color: var(--grey-dark);
}

.header-right p {
    margin: 5px 0;
}

/* Estilo para el número de teléfono ENORME */
.header-right .phone-number a {
    font-size: 2.5em; /* Tamaño de fuente para el número de teléfono */
    font-weight: bold;
    color: var(--red-medium); /* Color para que destaque */
    display: block; /* Para que ocupe su propia línea y el tamaño se aplique bien */
    margin-bottom: 5px;
}

/* WhatsApp Button */
.whatsapp-section {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--red-light);
}

.whatsapp-button {
    display: inline-block;
    background-color: var(--green-whatsapp);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-button:hover {
    background-color: #20b057; /* Un verde ligeramente más oscuro */
    text-decoration: none;
}

/* Info and Image Section (antes info-text-only) */
.info-location { /* Se cambió el nombre de la clase de nuevo a info-location */
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrar los elementos */
    align-items: flex-start;
    padding: 50px 5%;
    gap: 30px;
    background-color: var(--white);
    border-bottom: 1px solid var(--grey-medium);
}

.info-text {
    flex: 2;
    min-width: 300px;
    max-width: 700px;
    padding-right: 20px; /* Espacio entre texto e imagen */
}

.info-text h1 {
    font-size: 2.5em;
    text-align: left;
    color: var(--grey-dark);
}

.info-text p {
    font-size: 1.1em;
    color: var(--grey-dark);
    text-align: left;
}

.large-image-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px; /* Ancho máximo para la imagen */
    border: 1px solid var(--grey-medium);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.large-info-image {
    width: 100%;
    height: auto; /* Mantener la proporción de la imagen */
    display: block;
}

/* Services Grid Section */
.services-grid {
    padding: 50px 5%;
    background-color: var(--grey-light);
}

.services-grid h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--grey-medium);
}

.service-card h3 {
    font-size: 1.5em;
    margin: 20px 10px 10px 10px;
    color: var(--red-medium);
}

.service-card p {
    font-size: 1em;
    color: var(--grey-dark);
    padding: 0 15px;
}

/* Impact Section */
.impact-section {
    padding: 50px 5%;
    background-color: var(--red-light);
    text-align: center;
    border-top: 1px solid var(--red-medium);
    border-bottom: 1px solid var(--red-medium);
}

.impact-text h2 {
    font-size: 2.5em;
    color: var(--grey-dark);
    margin-bottom: 20px;
}

.impact-text p {
    font-size: 1.2em;
    color: var(--grey-dark);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.video-container iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--grey-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 5%;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .header-right {
        margin-top: 15px;
    }

    .header-right .phone-number a {
        font-size: 2em; /* Ajuste para pantallas más pequeñas */
    }

    .info-location { /* Ajuste para la sección de info e imagen */
        flex-direction: column;
        align-items: center;
    }

    .info-text, .large-image-container {
        padding-right: 0;
        width: 100%;
        max-width: none;
    }

    .info-text h1, .info-text p {
        text-align: center;
    }

    .video-container {
        flex-direction: column;
        align-items: center;
    }

    .video-container iframe {
        width: 90%;
        max-width: 400px; /* Ajuste para pantallas más pequeñas */
        height: 225px; /* Ajuste para pantallas más pequeñas */
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .header-right .phone-number a {
        font-size: 1.8em; /* Ajuste para pantallas aún más pequeñas */
    }

    .info-text h1 {
        font-size: 1.8em;
    }

    .service-card h3 {
        font-size: 1.3em;
    }

    .impact-text h2 {
        font-size: 2em;
    }
}
