:root {
    --fondo: #f5f5f5;
    --logo-color: #007dbb;
    --borde: #001fbb;
    --fondo-boton: #00BB9c;
    --texto: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--fondo);
    color: var(--texto);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    border-bottom: 4px solid var(--borde);
}

.logo-img {
    max-height: 60px; /* Ajusta según el tamaño de tu logo.png */
    width: auto;
    max-width: 260px;
}

.header-text {
    text-align: right;
}

.header-text h1 {
    font-size: 1.6rem;
    color: var(--logo-color);
}

/* Sección Misión Resaltada */
.mission-box {
    background-color: #ffffff;
    border: 2px solid var(--borde);
    padding: 3rem;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.mission-title {
    font-size: 2.2rem; /* Más grande y relevante */
    color: var(--logo-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-box p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Botones y Footer */
.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2.5rem;
    background-color: var(--fondo-boton);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    filter: brightness(0.9);
    transform: scale(1.05);
}

.footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .header-text { text-align: center; }
    .mission-box { margin: 1rem; padding: 1.5rem; }
    .mission-title { font-size: 1.6rem; }
    .cta-container { flex-direction: column; padding: 0 10%; }
}

/* Estilos específicos para la página de contacto */
.contact-card {
    margin-top: 1rem;
}

.contact-card h3 {
    color: var(--texto);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--texto);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    background: #f9f9f9;
    width: 100%;
    max-width: 400px;
    border: 1px solid #eee;
}

.contact-link:hover {
    color: var(--logo-color);
    background: #f0f0f0;
}

.contact-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .contact-link {
        font-size: 1rem;
    }
}

/* Contenedor de Servicios */
.services-container {
    padding: 3rem 5%;
    flex: 1;
}

.main-title {
    text-align: center;
    color: var(--logo-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Cuadrícula Dinámica */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

/* La Caja (Tarjeta) */
.service-card {
    border: 2px solid #001FBB; /* Color de borde solicitado */
    background-color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Título de la Caja */
.service-header {
    background-color: #007DBB; /* Fondo solicitado */
    color: #ffffff; /* Texto blanco solicitado */
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-header img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Opcional: vuelve el icono blanco si es oscuro */
    border-radius: 50px;
}

.service-header h3 {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

/* Imagen de Servicio */
.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Epígrafe / Descripción */
.service-desc {
    padding: 15px;
    background-color: #F5F5F5; /* Fondo solicitado */
    color: #333333; /* Texto solicitado */
    flex-grow: 1;
}

.service-desc p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Ajustes Responsive */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el botón flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Color oficial de WhatsApp */
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.whatsapp-icon-float {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon-float {
        width: 30px;
        height: 30px;
    }
}