/* 
 * PRESUPUESTALO - CSS UNIFICADO Y LIMPIO
 * Reemplaza todos los otros CSS para evitar conflictos
 * Author: Assistant
 * Date: 2025-07-22
 */

/* ==================== VARIABLES CSS - PALETA PROFESIONAL ==================== */
:root {
    /* Paleta profesional según especificaciones del proyecto */
    --primary-color: #005F73;        /* Azul petróleo - Profesionalismo y confianza */
    --secondary-color: #94D2BD;      /* Verde lima suave - Frescura y modernidad */
    --accent-color: #EE9B00;         /* Naranja suave - Energía para CTAs */
    --text-primary: #2c3e50;         /* Texto principal oscuro */
    --text-secondary: #6c757d;       /* Texto secundario */
    --white: #FFFFFF;                /* Blanco puro */
    --background-light: #F4F4F4;     /* Gris claro neutro */
    --background-neutral: #f8fafc;   /* Fondo alternativo */
    --border-light: #e1e8ed;
    --shadow-sm: 0 2px 4px rgba(0,95,115,0.1);
    --shadow-md: 0 4px 12px rgba(0,95,115,0.15);
    --gradient-primary: linear-gradient(135deg, #005F73, #94D2BD);
    --gradient-accent: linear-gradient(135deg, #005F73, #EE9B00);
}

/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ELIMINAR SUBRAYADOS COMPLETAMENTE - REGLA ÚNICA */
a, a:hover, a:focus, a:active, a:visited, a:link {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER Y NAVEGACIÓN ==================== */

.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 70px;
    overflow: visible;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--background-light);
}

.auth-buttons {
    display: flex;
    gap: 12px;
    overflow: visible;
    padding: 2px 0;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-outline {
    border: none;
    color: var(--white);
    background: var(--primary-color);
    box-sizing: border-box;
}

/* Botón de login específico */
.btn-login {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

.btn-login:hover {
    background: #004A59;
    color: var(--white);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #d68900;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    background: var(--background-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumbs-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 20px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.header-content-main {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.header-text {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
    line-height: 1.6;
    opacity: 0.9;
}

.search-box {
    background: var(--white);
    padding: 6px;
    border-radius: 8px;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    border-radius: 6px;
    color: var(--text-primary);
    background: transparent;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.search-btn:hover {
    background: var(--accent-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* ==================== SECCIONES DE CONTENIDO ==================== */
.services-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.2s ease;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.service-type {
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.service-card-link:hover {
    color: var(--accent-color);
}

/* ==================== CATEGORÍAS ==================== */

/* Main Content Container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Category Header */
.category-header {
    text-align: center;
    padding: 40px 0;
    background: var(--background-light);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.category-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Category Description Section */
.category-description {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.description-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content strong {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 50px 0;
    margin: 60px 0;
    border-radius: 12px;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* SEO Content Section */
.seo-content {
    margin: 60px 0;
}

.seo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-light);
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Service Link */
.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease;
}

.service-link:hover {
    color: var(--accent-color);
}
.categories-section {
    background: var(--background-light);
    padding: 40px 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--background-light);
    padding: 40px 30px;
    border-radius: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.2s ease;
}

.category-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-card p {
    color: var(--text-secondary);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 40px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-link {
    color: var(--white);
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 14px;
}

/* ==================== MENÚ MÓVIL ==================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 80px 20px 20px;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.mobile-dropdown {
    margin-left: 15px;
    margin-top: 8px;
}

.mobile-dropdown-item {
    display: block;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.mobile-auth-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-auth-buttons .btn {
    text-align: center;
    padding: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 950px) {
    .nav-menu, .auth-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* LAYOUT GENERAL */
    .page-title {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }
    
    /* CONTAINER MOBILE - SOLO PARA HOME */
    body.home .container {
        padding: 0 15px;
    }
    
    /* CONTENT GRID */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-header {
        padding: 20px 0;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
    
    /* TARJETAS SERVICIOS MOBILE - SOLO PARA HOME */
    body.home .service-card {
        padding: 20px 15px;
        margin-bottom: 15px;
        min-height: auto;
        text-align: left;
    }
    
    body.home .service-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    body.home .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    body.home .service-meta {
        font-size: 0.8rem;
        margin-bottom: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        align-items: center;
    }
    
    body.home .service-type {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 12px;
        background: var(--secondary-color);
        color: var(--white);
        font-weight: 500;
    }
    
    body.home .service-trade {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 12px;
        background: var(--primary-color);
        color: var(--white);
        font-weight: 500;
    }
    
    body.home .service-card-link {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    /* SECCIONES MOBILE - SOLO PARA HOME */
    body.home .services-section {
        padding: 25px 15px;
    }
    
    body.home .section-title {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    body.home .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    /* EXTRA SMALL MOBILE */
    .container {
        padding: 0 12px;
    }
    
    .service-card {
        padding: 14px 10px;
        border-radius: 8px;
    }
    
    .service-card h3 {
        font-size: 0.95rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    .service-meta {
        font-size: 0.7rem;
    }
    
    .services-section {
        padding: 25px 12px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    /* VERY SMALL MOBILE */
    .container {
        padding: 0 10px;
    }
    
    .service-card {
        padding: 12px 8px;
        border-radius: 6px;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    
    .service-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .service-meta {
        font-size: 0.65rem;
        gap: 2px;
    }
    
    .service-type {
        padding: 1px 4px;
        font-size: 0.65rem;
    }
    
    .service-card-link {
        font-size: 0.8rem;
    }
    
    .services-section {
        padding: 20px 10px;
    }
    
    .section-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
} 

/* ==================== SERVICIOS INDIVIDUALES ==================== */

/* Service Header */
.service-header {
    background: var(--background-light);
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item span:first-child {
    font-size: 1.2rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.content-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Price Info */
.price-info {
    background: var(--background-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.price-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.price-range {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Related Services */
.related-services {
    margin: 60px 0 40px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
} 