/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.col-md-6 {
    flex: 1;
    min-width: 300px;
}

/* ===== TIPOGRAFÍA ===== */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 45px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: #D32F2F;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D32F2F;
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.btn-whatsapp-header {
    background: #25D366;
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #D32F2F 0%, #F57C00 50%, #4CAF50 100%);
    color: white;
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-subtitle-sm {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary, .btn-white {
    padding: 18px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #D32F2F;
    box-shadow: 0 8px 30px rgba(255,255,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    color: #D32F2F !important;
}

.btn-secondary {
    color: white;
    font-weight: 500;
    text-decoration: underline;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    color: rgba(255,255,255,0.8);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 24px 48px;
    font-size: 1.2rem;
}

.cta-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3rem;
}

.hero-image img {
    max-width: 100%;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.vision-placeholder {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed rgba(255,255,255,0.3);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.vision-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .vision-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vision-image img {
        max-width: 100%;
    }
}

.hero-icon, .about-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.about-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

/* ===== SECCIONES ===== */
.section {
    padding: 100px 0;
}

.bg-light {
    background: #F8F9FA;
}

.section-header {
    margin-bottom: 4rem;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.service-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.bg-primary { background: linear-gradient(135deg, #D32F2F, #B71C1C); }
.bg-orange { background: linear-gradient(135deg, #F57C00, #E65100); }
.bg-green { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.bg-secondary { background: linear-gradient(135deg, #6C757D, #495057); }

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.btn-link {
    color: #D32F2F;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    display: inline-block;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.feature {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    min-width: 0;
    overflow: hidden;
    align-items: flex-start;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #D32F2F, #F57C00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

.feature h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.feature p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #D32F2F;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

/* ===== COBERTURA ===== */
.coverage-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.map-placeholder {
    min-height: 400px;
    background: rgba(255,255,255,0.05);
}

.coverage-cities h3 {
    margin-bottom: 2rem;
    color: #333;
}

.cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.city-tag {
    background: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.city-tag:hover {
    transform: translateY(-1px);
}

.city-tag.primary,
.city-tag.active {
    background: linear-gradient(135deg, #D32F2F, #F57C00);
    color: white;
    border-color: transparent;
}

/* ===== CONTACTO ===== */
.contact-section {
    background: linear-gradient(135deg, #D32F2F 0%, #F57C00 100%);
    color: white;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.contact-link {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.btn-white {
    background: white;
    color: #D32F2F;
    box-shadow: 0 10px 40px rgba(255,255,255,0.3);
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1.6fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-brand img {
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.social-link.whatsapp::before {
    content: '📱';
}

.social-link.facebook::before {
    content: '📘';
}

.social-link.email::before {
    content: '✉️';
}

.social-link:hover {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    color: white;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    font-weight: 600;
    font-size: 0.85rem;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    color: white;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-white { color: white !important; }
.mt-4 { margin-top: 2rem; }

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ===== RESPONSIVE ===== */
.interactive-map {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #fff;
}

.interactive-map svg {
    display: block;
    width: 100%;
    height: auto;
}

.map-city {
    cursor: pointer;
}

.map-city circle {
    fill: #9bb7ff;
    stroke: #2b5ccc;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.map-city text {
    fill: #2f3a56;
    font-size: 17px;
    font-weight: 600;
}

.map-city.active circle {
    fill: #D32F2F;
    stroke: #8f1f1f;
    transform: scale(1.12);
    transform-origin: center;
}

.map-city.active text {
    fill: #D32F2F;
}

.map-feedback {
    margin-top: 1rem;
    font-weight: 500;
    color: #444;
}

.footer-map-center h4 {
    margin-bottom: 0.8rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-map-center iframe {
    width: 100%;
    min-height: 180px;
    border: 0;
    border-radius: 14px;
}

@media (max-width: 1024px) {
    .hero-content, .hero-image { flex: 1 1 100%; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-image { padding-top: 2rem; }
    .hero-image img { max-width: 400px; }
    .coverage-content { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image { padding-top: 1.5rem; }
    .hero-image img { max-width: 300px; }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 0.8rem;
    }
    
    .whatsapp-float span {
        display: none;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
}