@import url('https://api.fontshare.com/v2/css?f[]=satoshi@1,900,700,500,301,701,300,501,401,901,400,2&display=swap');

/* ========================================
   SERVICIOS.CSS - Versión Optimizada para Nitidez Máxima
   ======================================== */

/* === VARIABLES === */
:root {
  /* Colores */
  --primary-color: #444B20;
  --primary-light: #918042;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --white-smoke: #f5f5f5;
  --black: #000000;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Otros */
  --nav-h: 80px;
  --brand: #444B20;
  --brand-2: #918042;
  --muted: #6b7280;
}

/* === BASE STYLES === */
html, body { 
    font-family: "Satoshi", system-ui, sans-serif !important; 
    height: 100%; 
    width: 100%; 
    overflow-x: hidden; 
}

body { 
    font-family: "Satoshi", system-ui, sans-serif !important; 
    background-color: var(--white-smoke); 
    color: var(--text-dark); 
    margin: 0; 
    line-height: 1.6; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Satoshi", system-ui, sans-serif !important;
    font-weight: 700;
    line-height: 1.2;
}

/* ==========================================
   HEADER SIMPLE
   ========================================== */

.page-header {
    padding: 140px 0 60px;
    background: var(--white);
    margin-top: 0;
}

.page-header-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 800;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

.page-header-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-gray);
    margin-bottom: 0;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

/* ==========================================
   SERVICES SECTION - OPTIMIZADO PARA NITIDEZ
   ========================================== */

.services-section {
    padding: 60px 0 80px;
    background: var(--white);
}

.service-card-wrapper {
    height: 100%;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: visible; /* Cambiado de hidden a visible */
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal),
                border-color var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e9ecef;
}

.service-card:hover{
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* Imagen del servicio - SIN EFECTOS QUE CAUSEN BLUR */
.service-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 20px 20px 0 0; /* Solo bordes superiores redondeados */
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Sin propiedades que fuercen GPU rendering */
}

/* ✅ OVERLAY COMPLETAMENTE ELIMINADO */
.service-overlay {
    display: none !important;
}

/* Hover effect sin transform */
.service-card:hover {
  /* Solo efectos de sombra y borde, sin transform */
}

/* ICONOS ELIMINADOS */
.service-badge {
    display: none !important;
}

/* Contenido del servicio */
.service-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

.service-description {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

/* Botón del servicio */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    align-self: flex-start;
    text-decoration: none;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

.service-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(68, 75, 32, 0.3);
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #5a6328 0%, #a89350 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-family: "Satoshi", system-ui, sans-serif !important;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
}

/* === MODAL DE CONTACTO === */
.cs-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: .18s ease;
    z-index: 1098;
}

.cs-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.98);
    width: fit-content;
    max-width: min(1000px, calc(100vw - 28px));
    min-width: 320px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    transition: .18s ease;
    z-index: 1099;
    overflow: hidden;
}

.cs-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cs-mask.open {
    opacity: 1;
    visibility: visible;
}

.cs-header {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cs-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    letter-spacing: .2px;
    font-family: "Satoshi", system-ui, sans-serif !important;
}

.cs-close {
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    width: 36px;
    height: 36px;
    font-size: 22px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-close:hover {
    background: rgba(255,255,255,.12);
}

.cs-body {
    background: #f7f7f7;
    padding: 16px;
}

.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    width: 100%;
}

.cs-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
    transition: transform .12s, box-shadow .12s, border-color .12s;
}

.cs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,.12);
    text-decoration: none;
    color: #222;
}

/* Iconos del modal */
.cs-card i {
    font-size: 24px;
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    line-height: 1;
}

.cs-card .bi {
    font-family: "bootstrap-icons" !important;
    speak: none;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cs-card .label {
    font-weight: 700;
    font-size: 15px;
    font-family: "Satoshi", system-ui, sans-serif !important;
    flex: 1;
}

/* Estilos específicos por tipo de contacto */
.cs-card.whatsapp {
    border-color: rgba(37,211,102,.35);
}

.cs-card.whatsapp:hover {
    border-color: rgba(37,211,102,.5);
    background: rgba(37,211,102,.02);
}

.cs-card.whatsapp i {
    color: #25d366;
}

.cs-card:not(.whatsapp) i {
    color: var(--primary-color);
}

#cs-call {
    display: none !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* === TABLETS === */
@media (max-width: 992px) {
    .page-header {
        padding: 120px 0 50px;
    }

    .page-header-title {
        font-size: 2rem;
    }

    .page-header-subtitle {
        font-size: 1.1rem;
    }

    .services-section {
        padding: 60px 0;
    }

    .cta-section {
        padding: 80px 0;
    }

    .service-image-container {
        height: 280px;
    }

    .service-body {
        padding: 24px;
    }

    .cta-title {
        font-size: 2rem;
    }
}

/* === MÓVILES GRANDES === */
@media (max-width: 768px) {
    .page-header {
        padding: 110px 0 40px;
    }

    .page-header-title {
        font-size: 1.75rem;
    }

    .page-header-subtitle {
        font-size: 1.05rem;
        padding: 0 15px;
    }

    .services-section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 60px 0;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .service-image-container {
        height: 260px;
        min-height: 260px;
    }

    .service-image {
        object-fit: cover;
        object-position: center;
    }

    .service-body {
        padding: 28px 20px;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .cs-modal {
        width: calc(100vw - 28px);
    }

    .cs-grid {
        grid-template-columns: 1fr;
    }

    #cs-call {
        display: flex !important;
    }
}

/* === MÓVILES PEQUEÑOS === */
@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 30px;
    }

    .page-header-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .page-header-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .services-section {
        padding: 40px 0;
    }

    .cta-section {
        padding: 50px 0;
    }

    .service-card {
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }

    .service-image-container {
        height: 240px;
        min-height: 240px;
        border-radius: 16px 16px 0 0;
    }

    .service-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .service-body {
        padding: 24px 18px;
    }

    .service-title {
        font-size: 1.35rem;
        margin-bottom: 0.8rem;
    }

    .service-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .service-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .cta-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .cta-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cta-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* === MÓVILES MUY PEQUEÑOS === */
@media (max-width: 360px) {
    .service-image-container {
        height: 220px;
        min-height: 220px;
    }

    .service-body {
        padding: 20px 15px;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .service-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ✅ FIX: Iconos */
.bi {
  font-family: "bootstrap-icons" !important;
  font-weight: normal !important;
}

.fa, .fas, .far, .fab,
.fa-solid, .fa-regular, .fa-brands,
[class^="fa-"], [class*=" fa-"] {
  font-family: "Font Awesome 6 Free" !important;
}

.fa-solid, .fas { font-weight: 900 !important; }
.fa-regular, .far { font-weight: 400 !important; }

.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}