/* === VARIABLES === */
:root {
    --primary: #2C5F58;
    --secondary: #4FA398;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --white: #ffffff;
    --text-gray: #666666;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); line-height: 1.6; background-color: var(--white); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--primary); }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000;
}
.logo img { height: 70px; width: auto; object-fit: contain; }
nav ul { display: flex; gap: 30px; }
nav a { font-size: 0.95rem; color: var(--dark); font-weight: 500; }
nav a:hover { color: var(--secondary); }
.btn-nav {
    background-color: var(--primary); color: var(--white);
    padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 500; font-size: 0.9rem;
}
.btn-nav:hover { background-color: var(--secondary); transform: translateY(-2px); }

/* === HERO === */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/imagenHome.jpeg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero-content { max-width: 800px; padding: 20px; }
.hero h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; font-weight: 300; opacity: 0.9; }
.btn-primary {
    display: inline-block; background-color: var(--secondary); color: var(--white);
    padding: 1rem 2.5rem; border-radius: 5px; font-weight: 500; font-size: 1rem;
}
.btn-primary:hover { background-color: var(--white); color: var(--primary); }

/* === BANNER COBERTURA === */
.coverage-banner {
    background: linear-gradient(135deg, var(--primary), #1a4a44);
    color: var(--white); text-align: center; padding: 1rem 0; font-size: 0.95rem;
}
.coverage-banner i { margin-right: 8px; }
.coverage-banner a { color: var(--white); text-decoration: underline; }
.coverage-banner a:hover { color: var(--secondary); }

/* === ESTADÍSTICAS === */
.stats { background: var(--primary); color: var(--white); padding: 3rem 0; }
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; text-align: center;
}
.stat-number {
    display: block; font-size: 2.5rem; font-weight: 700; font-family: var(--font-heading);
}
.stat-label { font-size: 0.95rem; opacity: 0.9; }

/* === SECCIONES GENERALES === */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--text-gray); max-width: 600px; margin: 0 auto; }

/* === SERVICIOS - DISEÑO MEJORADO === */
.services {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef4 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 163, 152, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.grid-services-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 95, 88, 0.15);
    border-color: var(--secondary);
}

.service-image {
    width: 220px;
    height: 220px;
    margin-bottom: 1.8rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    border: 5px solid var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 8px;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 163, 152, 0.3), rgba(44, 95, 88, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-item:hover .service-image::before {
    opacity: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.service-item:hover .service-image {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 35px rgba(79, 163, 152, 0.3);
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-item p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin: 0;
    padding: 0 1rem;
    transition: color 0.3s ease;
}

.service-item:hover p {
    color: var(--primary);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 968px) {
    .grid-services-new {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
    }
    
    .service-image {
        width: 200px;
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 3rem 0;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .service-image {
        width: 180px;
        height: 180px;
        margin-bottom: 1.2rem;
    }
    
    .service-item p {
        font-size: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Efecto adicional para pantallas grandes */
@media (min-width: 1200px) {
    .service-image {
        width: 240px;
        height: 240px;
    }
}
/* === PROCESO === */
.process { background-color: var(--white); padding: 5rem 0; }
.process-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; position: relative;
}
.process-grid::before {
    content: ''; position: absolute; top: 40px; left: 10%; right: 10%;
    height: 2px; background: var(--secondary); opacity: 0.3; z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 80px; height: 80px; background: var(--primary); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700; margin: 0 auto 1.5rem;
    border: 4px solid var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.process-step h4 { margin-bottom: 0.8rem; font-size: 1.1rem; }
.process-step p { color: var(--text-gray); font-size: 0.95rem; }

/* === SOBRE NOSOTROS === */
.about { background-color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.about-image img {
    width: 100%; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    object-fit: cover; height: 450px;
}
.about-content { display: flex; flex-direction: column; gap: 25px; }
.mv-card {
    background: var(--light); padding: 1.8rem; border-radius: 10px;
    border-left: 4px solid var(--secondary); transition: 0.3s;
}
.mv-card:hover { transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.mv-icon { font-size: 1.8rem; color: var(--secondary); margin-bottom: 10px; }
.mv-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary); }
.mv-card p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; }

/* === GALERÍA === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item {
    position: relative; overflow: hidden; border-radius: 10px; height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px; color: white; opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 5px; }
.overlay p { font-size: 0.9rem; color: #ddd; }

/* === TESTIMONIOS === */
.testimonials { background-color: var(--white); padding: 4rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: var(--light); padding: 2rem; border-radius: 10px;
    border-left: 4px solid var(--secondary);
}
.testimonial-card p { font-style: italic; color: var(--text-gray); margin-bottom: 1rem; }
.client-name { font-weight: 600; color: var(--primary); font-size: 0.95rem; }

/* === FAQ === */
.faq { background-color: var(--light); padding: 4rem 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white); margin-bottom: 1rem; border-radius: 8px;
    overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.faq-item summary {
    padding: 1.2rem 1.5rem; font-weight: 600; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--secondary); transition: transform 0.3s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.5rem; color: var(--text-gray); line-height: 1.7; }

/* === CONTACTO === */
.contact { background-color: var(--light); }
.contact-wrapper {
    display: grid; grid-template-columns: 2fr 1fr; gap: 50px;
    background: var(--white); padding: 3rem; border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input, textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 5px;
    font-family: var(--font-body); outline: none; transition: 0.3s;
}
input:focus, textarea:focus { border-color: var(--secondary); }
.btn-submit {
    background-color: #25D366; color: var(--white); border: none;
    padding: 15px; font-size: 1rem; border-radius: 5px; cursor: pointer;
    font-weight: 600; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-submit:hover { background-color: #1ebc57; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; color: var(--text-gray); }
.info-item { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; margin-bottom: 15px; }
.info-item i { color: var(--secondary); font-size: 1.3rem; }
.info-item a { color: var(--dark); }
.info-item a:hover { color: var(--secondary); }

/* === BOTÓN FLOTANTE WHATSAPP === */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999;
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover { background-color: #1ebc57; transform: scale(1.1); }

/* === BOTÓN SCROLL TOP === */
.scroll-top {
    position: fixed; bottom: 110px; right: 40px; width: 50px; height: 50px;
    background: var(--primary); color: var(--white); border: none; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 9999; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--secondary); transform: translateY(-3px); }

/* === FOOTER === */
footer { background-color: var(--primary); color: var(--white); padding: 2rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.socials { display: flex; gap: 15px; }
.socials a { color: var(--white); font-size: 1.2rem; }
.socials a:hover { color: var(--secondary); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 20px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .contact-wrapper, .input-group, .process-grid { grid-template-columns: 1fr; }
    .process-grid::before { display: none; }
    .about-image img { height: 300px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 25px; }
    .scroll-top { bottom: 80px; right: 20px; width: 45px; height: 45px; font-size: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}