/* ========================================
   VARIABLES DE TEMA
   ======================================== */
:root {
    /* Tema Azul Técnico (Default) */
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --accent: #10B981;
    --accent-secondary: #F97316;
    --danger: #EF4444;
    --success: #22C55E;
    
    --bg-main: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --bg-card: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Tema Verde Tech */
[data-theme="green"] {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10B981;
    --accent: #F59E0B;
    --accent-secondary: #EC4899;
}

/* Tema Naranja Energético */
[data-theme="orange"] {
    --primary: #EA580C;
    --primary-dark: #C2410C;
    --primary-light: #F97316;
    --accent: #8B5CF6;
    --accent-secondary: #06B6D4;
}

/* Tema Púrpura Profesional */
[data-theme="purple"] {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #8B5CF6;
    --accent: #14B8A6;
    --accent-secondary: #F59E0B;
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
      overflow-x: visible; /* Cambiar a visible */
    overflow-y: visible; /* Cambiar a visible */
}
/* ========================================
   FIX OVERFLOW HORIZONTAL
   ======================================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    overflow-x: hidden;
        position: relative;

    transition: background-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden !important;
    overflow-y: hidden !important;
}

/* ========================================
   TOP BAR URGENCY
   ======================================== */
.top-bar-urgency {
    background: linear-gradient(90deg, var(--accent-secondary) 0%, #DC2626 100%);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    animation: pulse 2s infinite;
}

.urgency-icon {
    display: inline-block;
    animation: shake 0.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ========================================
   HEADER STICKY
   ======================================== */
   .seo-h1 {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Texto SEO invisible visualmente pero legible por Google */
.seo-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.header {
     background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.931) 90%,
        rgba(0, 0, 0, 0.131) 100%
    );

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px;
        transition: transform 0.35s ease, box-shadow 0.35s ease;

}

/* Header oculto */
.header--hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    transition: color 0.3s ease;
}

.logo-dot {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-switcher {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background 0.3s ease, transform 0.3s ease;
}

.theme-switcher:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-call:hover {
    background: #059669;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 200px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-edit {
    background: #3B82F6;
    color: white;
}

.btn-delete {
    background: #EF4444;
    color: white;
}
/* ========================================
   HERO SECTION MEJORADO
   ======================================== */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    width: 100%;
    padding-top: 180px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Efecto de partículas animadas */
.hero-background::before {
   content: '';
    position: absolute;
    inset: 0;
 background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.093) 0%,
        rgba(0, 0, 0, 0.388) 60%,
        rgba(0, 0, 0, 0.855) 100%
    );    
    z-index: 1;
    border-radius: 5px;
  
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('fondoazulmoderno.jpg');
 background-size: cover;
  background-position: center;
    opacity: 0.8;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding-top: 30px;
    bottom: 70px;
    max-width: 100%;
}

.badge.floating {
    animation: float-badge 3s ease-in-out infinite;
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-top: 0px;
}

@keyframes float-badge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.usp {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: slide-up 0.6s ease-out backwards;
}

.usp:nth-child(1) { animation-delay: 0.1s; }
.usp:nth-child(2) { animation-delay: 0.2s; }
.usp:nth-child(3) { animation-delay: 0.3s; }

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.usp:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.usp-icon {
    font-size: 28px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-border 2s infinite;
    margin-bottom: 0px;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* ========================================
   SECCIÓN CON IMAGEN DE FONDO (Garantía)
   ======================================== */
.warranty {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%),
                url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920') center/cover;
    position: relative;
    overflow: hidden;
}

.warranty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    animation: pattern-move 20s linear infinite;
}

@keyframes pattern-move {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(60px) translateY(60px);
    }
}

.warranty-content {
    position: relative;
    z-index: 2;
}

.warranty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.warranty-content h2 {
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.warranty-list li {
    color: white;
}

.warranty-list li::before {
    color: #FCD34D;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   LOADING SHIMMER EFFECT
   ======================================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

/* ========================================
   FORMULARIO RÁPIDO
   ======================================== */
.quick-form {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.form-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.form-card h3 {
    text-align: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 30px;
}

.quick-form-inline {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-form-inline select,
.quick-form-inline input {
    flex: 1;
    min-width: 180px;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quick-form-inline select:focus,
.quick-form-inline input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.quick-form-inline .otro-input {
    border-color: var(--accent);
    background: #F0FDF4;
}

.quick-form-inline button {
    flex-shrink: 0;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   SERVICIOS
   ======================================== */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 60px;
}

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

/* ========================================
   ANIMACIONES PARA CARDS
   ======================================== */
.service-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1; /* Agregar z-index negativo */

}

.service-card:hover::before {
    left: 100%;
    
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 20px;
}

.service-card ul {
    margin-bottom: 25px;
}

.service-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.badge-free {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   MARCAS
   ======================================== */
.brands {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.brand-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.brand-item:hover {
    color: var(--primary);
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.brands-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
}

/* ========================================
   CÓMO FUNCIONA
   ======================================== */
.how-it-works {
    padding: 80px 0;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

.timeline-item {
    text-align: center;
}

.timeline-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.timeline-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

/* ========================================
   PRECIOS
   ======================================== */
.pricing {
    padding: 80px 0;
    background: var(--bg-secondary);
    width: 100%;
}

.pricing-table-wrapper {
    overflow-x: hidden;
    overflow-y: hidden;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden; /* CAMBIO CLAVE */
    box-shadow: var(--shadow-md);
}

.pricing-table thead {
    background: var(--primary);
    color: white;
}

.pricing-table th,
.pricing-table td {
    padding: 18px;
    text-align: left;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.pricing-table tbody tr:hover {
    background: var(--bg-secondary);
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-note {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.pricing-note p {
    margin-bottom: 20px;
    font-size: 16px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-payment {
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   GARANTÍA
   ======================================== */
.warranty {
    padding: 80px 0;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

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

.warranty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.warranty-content h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 30px;
}

.warranty-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px;
}

.warranty-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: var(--text-primary);
}

.warranty-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 20px;
}

/* ========================================
   POR QUÉ ELEGIRNOS
   ======================================== */
.why-us {
    padding: 80px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.why-item {
    text-align: center;
    padding: 35px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.why-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.why-item h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 15px;
}

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

/* ========================================
   URGENCIAS
   ======================================== */
.emergency {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.emergency-card {
    background: white;
    border: 3px solid var(--accent-secondary);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}


.emergency-card h2 {
    color: var(--accent-secondary);
    font-size: 36px;
    margin-bottom: 15px;
}

.emergency-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.emergency-details {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.emergency-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.emergency-label {
    font-weight: 600;
    color: var(--text-primary);
}

.emergency-value {
    color: var(--text-secondary);
}

.emergency-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========================================
   TESTIMONIOS
   ======================================== */
.testimonials {
    padding: 80px 0;
}

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

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    color: #FCD34D;
    font-size: 24px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-device {
    font-size: 14px;
    color: var(--text-secondary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   CONTACTO
   ======================================== */
.contact {
    padding: 80px 0;
}

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

.contact-method {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.whatsapp-bg {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.phone-bg {
    background: linear-gradient(135deg, var(--accent), #059669);
}

.email-bg {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.contact-method h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 10px;
}

.contact-method p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-phone,
.contact-email {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 10px;
}

.contact-form-section {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
}

.contact-form-section h3 {
    text-align: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 20px;
}

.contact-form .otro-input-contact {
    border-color: var(--accent);
    background: #F0FDF4;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}


/* Ubicación Section */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.location-section {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.location-section h3 {
    text-align: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 30px;
}

.location-info {
    max-width: 800px;
    margin: 0 auto;
}

.location-details p {
    padding: 10px 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.location-note {
    margin-top: 20px;
    font-style: italic;
    color: var(--accent);
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1F2937;
    color: #D1D5DB;
    padding: 60px 0 30px;
}

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

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 24px;
}

.footer-col ul li {
    padding: 8px 0;
}

.footer-col a {
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.trust-badge {
    font-size: 14px;
    color: #9CA3AF;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}

.footer-link {
    color: var(--primary-light);
    margin-left: 15px;
}

/* ========================================
   FLOATING ACTION BUTTONS
   ======================================== */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: pulse-fab 2s infinite;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.fab-whatsapp {
    background: #25D366;
    color: white;
}

.fab-call {
    background: var(--accent);
    color: white;
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-secondary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

@keyframes pulse-fab {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 99999;
    font-weight: 600;
    transition: transform 0.4s ease;
    max-width: 90%;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.admin-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
}

.admin-modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.admin-modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.admin-modal-buttons {
    display: flex;
    gap: 10px;
}

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
        overflow-y: hidden !important;

}

.admin-panel-content {
    max-width: 1200px;
    margin: 50px auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h2 {
    color: var(--primary);
}

.btn-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-close:hover {
    transform: scale(1.1);
}

.admin-body {
    padding: 30px;
}

.admin-section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.admin-section h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 24px;
}

.admin-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
    font-family: inherit;
}
textarea {
    overflow-y: hidden !important;
}
.admin-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item,
.price-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.service-item-info h4,
.price-item-info h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.service-item-info p,
.price-item-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.service-item-actions,
.price-item-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */
@media (max-width: 1024px) {
   .hero-content {
        bottom: 10px;
    }
}
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .timer-badge {
        margin-bottom: 20px;
    }
    
    .header-actions {
        display: none;
    }
    .header {
        position: fixed;
        background: rgba(255, 255, 255, 0.931);
        left: 0;
        right: 0;

    }
    .mobile-menu-toggle {
        display: flex;
    }
   .hero {
        min-height: 600px;
        padding-top: 80px;
    }
    
    .hero-content {
        bottom: 0px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-usps {
        flex-direction: column;
        gap: 15px;
    }
    
    .usp {
        width: 100%;
        justify-content: center;
    }
    
    .warranty {
        padding: 60px 0;
    }
    
    .quick-form-inline {
        flex-direction: column;
    }
    
    .quick-form-inline select,
    .quick-form-inline input {
        min-width: 100%;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}
    
    .timeline {
        grid-template-columns: 1fr;
    }
    
    .form-card,
    .contact-form-section,
    .location-section {
        padding: 30px 20px;
    }
    
    .emergency-card {
        padding: 30px 20px;
          
        max-width: 100%;
    
    }
    
    .emergency-actions {
        flex-direction: column;
    }
    
    .fab-container {
        right: 20px;
        bottom: 20px;
    }
    
    .fab {
        width: 56px;
        height: 56px;
    }
    
    .pricing-table {
        font-size: 14px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 12px 10px;
    }

    .admin-panel-content {
        margin: 20px;
    }

    .service-item,
    .price-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-item-actions,
    .price-item-actions {
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
     .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .badge.floating {
        font-size: 12px;
        padding: 10px 20px;
        margin-top: 20px;
    }
    
    .btn-large {
        min-width: 100%;
    }
    .timer-badge {
        margin-bottom: 30px;
    }
    
    .form-card h3,
    .contact-form-section h3 {
        font-size: 22px;
    }
}

/* ========================================
   ADMIN FORM BUTTONS - FIX RESPONSIVE
   ======================================== */

.admin-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Fix para móviles - los botones se apilan verticalmente */
@media (max-width: 768px) {
    .admin-form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-form-buttons .btn {
        width: 100%;
    }
}

/* Fix adicional para pantallas muy pequeñas */
@media (max-width: 480px) {
    .admin-form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-form-buttons .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ========================================
   FIX ELEMENTOS QUE CAUSAN OVERFLOW
   ======================================== */
* {
    max-width: 100%;
}



/* Fix para tablas en móvil */
@media (max-width: 768px) {
    .pricing-table-wrapper {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        margin-right: -20px;
        padding: 0 20px;
    }
    
    .pricing-table {
        min-width: 100%;
    }
    
    /* Fix para formularios */
    .quick-form-inline,
    .contact-form,
    .form-row {
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix para hero */
    .hero-title {
        font-size: 32px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 16px;
        word-wrap: break-word;
    }
    
    /* Fix para cards que puedan sobresalir */
    .service-card,
    .testimonial-card,
    .why-item {
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix para admin panel */
    .admin-panel-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .admin-modal-content {
        width: calc(100% - 40px);
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }

    
    .pricing-table {
        font-size: 12px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 8px 6px;
    }
}