/* Paleta de colores personalizada corregida según especificaciones */
:root {
    --color-petroleum: #1A3637;  /* Títulos principales: #1A3637 */
    --color-blue: #315B70;       /* Subtítulos / textos destacados: #315B70 */
    --color-text-normal: #4A4A4A;/* Texto normal: #4A4A4A */
    --color-sage: #2F806F;       /* Botones principales: #2F806F */
    --color-sage-hover: #246557; /* Verde hover ajustado */
    --color-sand: #D6C0B3;       /* Arena / Acento claro */
    --color-sand-light: #F4EEEE; /* Arena claro / Fondos suaves */
    --color-ivory: #FAF9F5;      /* Blanco cálido de fondo: #FAF9F5 */
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
    color: var(--color-text-normal);
    background-color: var(--color-ivory);
}

/* Clases de colores utilitarios para la paleta */
.bg-petroleum { background-color: var(--color-petroleum) !important; }
.text-petroleum { color: var(--color-petroleum) !important; }
.text-blue { color: var(--color-blue) !important; }
.bg-blue { background-color: var(--color-blue) !important; }
.bg-sage { background-color: var(--color-sage) !important; }
.text-sage { color: var(--color-sage) !important; }
.bg-sand { background-color: var(--color-sand) !important; }
.text-sand { color: var(--color-sand) !important; }
.bg-sand-light { background-color: var(--color-sand-light) !important; }
.bg-ivory { background-color: var(--color-ivory) !important; }

/* Aplicamos el color azul a subtítulos y textos destacados generales */
.lead,
.cobertura-card .cobertura-subtitle,
#cobertura .cobertura-subtitle,
.text-secondary,
.card-subtitle,
section h4.text-muted,
.accordion-body,
.modal-body p.text-muted {
    color: var(--color-blue) !important;
}

/* Botones personalizados */
.btn-sage {
    background-color: var(--color-sage);
    border-color: var(--color-sage);
    transition: background-color 0.2s ease;
}

.btn-sage:hover {
    background-color: var(--color-sage-hover);
    border-color: var(--color-sage-hover);
    color: #ffffff;
}

.btn-outline-petroleum {
    color: var(--color-petroleum);
    border-color: var(--color-petroleum);
}

.btn-outline-petroleum:hover {
    background-color: var(--color-petroleum);
    color: #ffffff;
}

/* Hero Section ajustado para usar fondo.jpeg */
.hero-section {
    background: linear-gradient(135deg, rgba(250, 249, 245, 0.95) 0%, rgba(250, 249, 245, 0.7) 50%, rgba(26, 54, 55, 0.3) 100%), 
                url('fondo.jpeg') no-repeat center center;
    background-size: cover;
    min-height: 80vh;
    padding: 80px 0;
    color: var(--color-petroleum) !important;
}

/* Aseguramos que los títulos principales del hero mantengan el color petróleo correcto (#1A3637) */
.hero-section h1 {
    color: var(--color-petroleum) !important;
}

/* Tarjeta de cobertura esbelta y desplazada a la derecha */
.card-angosta {
    max-width: 340px;
    margin-left: auto;
    margin-right: 0;
    border-radius: 24px !important;
}

/* Corrección para la tarjeta de cobertura en dispositivos móviles */
@media (max-width: 991.98px) {
    .cobertura-card.card-angosta {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 2rem !important;
        border-radius: 24px !important;
    }
}

.icon-pin-container {
    background-color: #e6ede9;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-pin {
    width: 24px;
    height: 24px;
    color: var(--color-sage);
}

.comunas-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* Pastillas de comunas */
.comunas-list li {
    background-color: #f1f6f3; 
    padding: 11px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-petroleum);
    transition: background-color 0.2s ease;
}

.comunas-list li:hover {
    background-color: #e4efe9;
}

.check-badge {
    background-color: var(--color-sage);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 14px;
}

/* Animaciones de Tarjetas de Servicios */
.service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Animación de Aparición Suave */
.fade-in {
    animation: fadeInAnimation 1s ease-in-out;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Acordeón */
.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0,0,0,.125);
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-sand-light);
    color: var(--color-petroleum);
}

/* Botones Flotantes */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: white;
}

.instagram-float {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.2s;
    text-decoration: none;
}

.instagram-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Iconos informativos inferiores en tono verde y con efecto hover */
.hero-section .row.border-top div,
.hero-section .row.border-top i {
    color: var(--color-sage) !important;
    transition: color 0.2s ease;
}

.hero-section .row.border-top div:hover,
.hero-section .row.border-top div:hover i {
    color: var(--color-sage-hover) !important;
}

.service-pill {
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.service-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important;
    background-color: #f8f9fa !important;
}