/* CSS PLANTILLA PARA CATEGORÍAS SECUNDARIAS Y PÁGINAS DE SERVICIOS */
/* Este CSS se usa en TODAS las páginas de categorías y servicios */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* Header de Categoría */
.category-header {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: #ffffff;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.category-header-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.header-cta {
    display: inline-block;
    background: #4a90e2;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 1rem;
}

.header-cta:hover {
    background: #357abd;
}

/* Contenedor Principal */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Sección de Servicios */
.services-section {
    margin-bottom: 4rem;
}

.services-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.services-intro h2 {
    font-size: 2rem;
    color: #001f3f;
    margin-bottom: 1rem;
}

.services-intro p {
    font-size: 1.05rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.service-card h2 {
    font-size: 1.5rem;
    color: #001f3f;
    margin-bottom: 1rem;
}

.service-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: #357abd;
}

/* Sección de Imagen */
.image-section {
    margin: 4rem 0;
    text-align: center;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Sección de Contenido Detallado */
.content-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2rem;
    color: #001f3f;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-section p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Sección de Áreas de Servicio */
.areas-section {
    padding: 4rem 2rem;
    background: #ffffff;
}

.areas-container {
    max-width: 1200px;
    margin: 0 auto;
}

.areas-title {
    text-align: center;
    font-size: 2rem;
    color: #001f3f;
    margin-bottom: 1rem;
}

.areas-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.area-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #4a90e2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.area-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* Sección de Mapa */
.map-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-title {
    text-align: center;
    font-size: 2rem;
    color: #001f3f;
    margin-bottom: 1rem;
}

.map-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #555;
}

.map-wrapper {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Sección CTA Final */
.cta-section {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: #4a90e2;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.btn-cta-primary:hover {
    background: #357abd;
}

.btn-cta-secondary {
    background: transparent;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: 2px solid #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-cta-secondary:hover {
    background: #ffffff;
    color: #001f3f;
}

/* Botón flotante de 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 12px rgba(0,0,0,0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 16px rgba(0,0,0,0.6);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 2rem;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
}

.breadcrumbs a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .category-header h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }

    .main-container {
        padding: 2rem 1rem;
    }
}