/* ============================================================================
   SERVICIOS.CSS - Estilos específicos para la página de servicios
   No incluye estilos para sobre-mi.php para evitar conflictos
   Colores principales: #91af56 (verde) y #545454 (gris)
   ============================================================================ */

/* ==============================
   VARIABLES GLOBALES
   ============================== */
:root {
    /* Colores principales del theme */
    --verde-personalizado: #91af56;
    --verde-oscuro: #7a9548;
    --verde-claro: #a8c274;
    --gris-personalizado: #545454;
    --gris-oscuro: #3a3a3a;
    --gris-claro: #707070;
    --blanco-suave: #f8f9fa;
    --texto-oscuro: #2c3e50;
    
    /* Colores de marca */
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --email-red: #d44638;
    
    /* Espaciados */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Bordes */
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    
    /* Sombras */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ==============================
   HERO SERVICIOS
   ============================== */
.servicios-hero {
    background: linear-gradient(rgba(145, 175, 86, 0.9), rgba(145, 175, 86, 0.8)),
                url('../img/servicios-hero.png') center/cover no-repeat;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.servicios-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.servicios-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.servicios-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 50px;
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==============================
   NAVEGACIÓN ENTRE SERVICIOS
   ============================== */
.servicios-navegacion {
    background: white;
    padding: 20px 0;
    border-bottom: 2px solid var(--blanco-suave);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.servicios-menu {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.servicio-nav-link {
    color: var(--gris-personalizado);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--blanco-suave);
}

.servicio-nav-link:hover {
    color: var(--verde-personalizado);
    border-color: var(--verde-personalizado);
    background: white;
    transform: translateY(-2px);
}

.servicio-nav-link.active {
    background: var(--verde-personalizado);
    color: white;
    border-color: var(--verde-personalizado);
    box-shadow: 0 5px 15px rgba(145, 175, 86, 0.3);
}

.servicio-nav-link i {
    font-size: 1.1rem;
}

/* ==============================
   SERVICIOS DETALLADOS
   ============================== */
.servicios-detallados {
    padding: 80px 0;
    background: var(--blanco-suave);
}

.servicio-detalle {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--verde-personalizado);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 120px;
}

.servicio-detalle:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.servicio-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--blanco-suave);
}

.servicio-icono {
    background: linear-gradient(135deg, var(--verde-personalizado), var(--verde-oscuro));
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(145, 175, 86, 0.3);
}

.servicio-titulo h2 {
    color: var(--texto-oscuro);
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.servicio-subtitulo {
    color: var(--verde-personalizado);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.servicio-contenido {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.servicio-imagen {
    background: var(--blanco-suave);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.servicio-imagen:hover {
    transform: scale(1.02);
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-imagen:hover img {
    transform: scale(1.05);
}

.servicio-descripcion h3 {
    color: var(--verde-personalizado);
    font-size: 1.5rem;
    margin: 25px 0 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.servicio-descripcion h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--verde-personalizado);
    border-radius: 2px;
}

.servicio-descripcion p {
    color: var(--gris-personalizado);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.servicio-descripcion ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.servicio-descripcion li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--gris-personalizado);
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--blanco-suave);
}

.servicio-descripcion li:last-child {
    border-bottom: none;
}

.servicio-descripcion li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--verde-personalizado);
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(145, 175, 86, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botones dentro de servicios */
.servicio-descripcion .btn {
    background-color: var(--verde-personalizado);
    border-color: var(--verde-personalizado);
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(145, 175, 86, 0.3);
}

.servicio-descripcion .btn:hover {
    background-color: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(145, 175, 86, 0.4);
}

.servicio-descripcion .btn i {
    font-size: 1.2rem;
}

/* ==============================
   TECNOLOGÍA Y EQUIPOS
   ============================== */
.tecnologia-section {
    padding: 60px 0;
    background: white;
}

.tecnologia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tecnologia-card {
    background: var(--blanco-suave);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 4px solid var(--verde-personalizado);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.tecnologia-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    background: white;
}

.tecnologia-card i {
    font-size: 3rem;
    color: var(--verde-personalizado);
    margin-bottom: 20px;
}

.tecnologia-card h3 {
    color: var(--texto-oscuro);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.tecnologia-card p {
    color: var(--gris-personalizado);
    margin: 0;
    line-height: 1.5;
}

/* ==============================
   BENEFICIOS
   ============================== */
.beneficios-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--blanco-suave), #e9ecef);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.beneficio-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--verde-personalizado);
}

.beneficio-card i {
    font-size: 2.5rem;
    color: var(--verde-personalizado);
    margin-bottom: 20px;
}

.beneficio-card h3 {
    color: var(--texto-oscuro);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.beneficio-card p {
    color: var(--gris-personalizado);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ==============================
   CTA SERVICIOS
   ============================== */
.servicios-cta {
    background: linear-gradient(135deg, var(--verde-personalizado), var(--verde-oscuro));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.servicios-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-whatsapp-cta {
    background: white;
    color: var(--verde-personalizado);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.btn-whatsapp-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: transparent;
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--verde-personalizado);
    transform: translateY(-5px);
}

.cta-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.05rem;
}

.cta-info i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-info strong {
    font-weight: 600;
    margin-left: 5px;
}

/* ==============================
   ANIMACIONES Y EFECTOS
   ============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(145, 175, 86, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(145, 175, 86, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(145, 175, 86, 0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.servicio-nav-link.active {
    animation: pulse 2s infinite;
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */
@media (max-width: 1024px) {
    .servicios-hero {
        margin-top: 70px;
        padding: 100px 0 60px;
    }

    .servicios-hero h1 {
        font-size: 2.5rem;
    }

    .servicio-contenido {
        gap: 30px;
    }
    
    .servicio-imagen {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .servicios-hero {
        padding: 90px 0 50px;
        margin-top: 60px;
    }

    .servicios-hero h1 {
        font-size: 2rem;
    }

    .servicios-hero p {
        font-size: 1.1rem;
    }

    .servicio-detalle {
        padding: 30px;
    }

    .servicio-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .servicio-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servicio-imagen {
        height: 200px;
    }

    .servicio-titulo h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-whatsapp-cta,
    .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .servicios-menu {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
        scrollbar-width: thin;
    }

    .servicio-nav-link {
        white-space: nowrap;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .servicios-hero {
        margin-top: 55px;
        padding: 80px 0 40px;
    }

    .servicios-hero h1 {
        font-size: 1.8rem;
    }

    .servicio-titulo h2 {
        font-size: 1.6rem;
    }

    .tecnologia-grid,
    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .servicio-icono {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 380px) {
    .servicios-menu {
        gap: 10px;
    }
    
    .servicio-nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .servicio-nav-link i {
        font-size: 1rem;
    }
}

/* ==============================
   UTILIDADES Y HELPER CLASSES
   ============================== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--texto-oscuro);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header .subtitle {
    color: var(--gris-personalizado);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==============================
   ESTILOS ESPECÍFICOS PARA IMÁGENES
   ============================== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==============================
   ACCESIBILIDAD
   ============================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==============================
   PRINT STYLES
   ============================== */
@media print {
    .servicios-navegacion,
    .cta-buttons,
    .servicio-descripcion .btn {
        display: none !important;
    }
    
    .servicio-detalle {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .servicios-hero {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
}