/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5BA0F2;
    --primary-dark: #4A90E2;
    --secondary-color: #7DB3E8;
    --accent-color: #ff6b35;
    --tertiary-color: #00CED1;
    --tertiary-light: rgba(0, 206, 209, 0.2);
    --tertiary-medium: rgba(0, 206, 209, 0.5);
    --tertiary-dark: #00B8BA;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Navegación */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    padding: 0 5%;
    max-width: none;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-left: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-right: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(135deg, #1E5FC7 0%, #3A7FE8 40%, #008B8D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Herramientas - Patrón repetitivo más visible */
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255, 255, 255, 0.12) 40px, rgba(255, 255, 255, 0.12) 80px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255, 255, 255, 0.08) 40px, rgba(255, 255, 255, 0.08) 80px);
    z-index: 0;
    opacity: 0.6;
}

.hero::after {
    content: '🔧 ⚙️ 🔩 🔨 💡 🔌 🔧 ⚙️ 🔩 🔨 💡 🔧 ⚙️ 🔩';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    font-size: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    opacity: 0.4;
    z-index: 0;
    line-height: 1;
    white-space: nowrap;
    word-spacing: 4rem;
    letter-spacing: 2rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3), 0 0 90px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) brightness(1.2);
}


/* Overlay oscuro para mejorar legibilidad del texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 95, 199, 0.15) 0%, rgba(58, 127, 232, 0.12) 40%, rgba(0, 139, 141, 0.1) 100%);
    z-index: 0;
}

.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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

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

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Secciones */
section {
    padding: 5rem 0;
}

/* Sección de Urgencia 24h */
.urgency-section {
    background: linear-gradient(135deg, #8B0000 0%, #A0203A 50%, #B84C5C 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.urgency-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.05) 20px,
        rgba(255, 255, 255, 0.05) 40px
    );
    opacity: 0.3;
}

.urgency-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.urgency-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse-urgency 2s infinite;
}

@keyframes pulse-urgency {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.urgency-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.urgency-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 600;
}

.urgency-features {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.urgency-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 150px;
    transition: var(--transition);
}

.urgency-feature:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.urgency-feature .feature-icon {
    font-size: 2rem;
}

.urgency-feature span:not(.feature-icon) {
    font-size: 1rem;
    font-weight: 600;
}

.btn-urgency {
    background: white;
    color: #8B0000;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-urgency:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
    color: #8B0000;
}

.btn-urgency .btn-icon {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .urgency-icon {
        font-size: 3rem;
    }
    
    .urgency-title {
        font-size: 2rem;
    }
    
    .urgency-subtitle {
        font-size: 1.1rem;
    }
    
    .urgency-features {
        gap: 1.5rem;
    }
    
    .urgency-feature {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }
    
    .btn-urgency {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Sección CTA (Call to Action) */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 40%, var(--tertiary-color) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-phone {
    background: var(--accent-color);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-phone:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-phone,
    .btn-whatsapp {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

/* Servicios */
.services {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg-white);
    padding: 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
}

.service-card {
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    border-top: 3px solid var(--tertiary-color);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3,
.service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    padding-top: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    padding-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.services-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.type-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--tertiary-dark);
}

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

.type-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.type-card p {
    opacity: 0.95;
    line-height: 1.8;
}

/* ¿Por qué elegir nuestro servicio técnico? */
.why-choose-us {
    background: var(--bg-light);
    padding: 5rem 0;
}

.why-choose-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefits-list li {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: 1.4rem;
    color: var(--text-dark);
    text-align: left;
    position: relative;
    padding-left: 2.5rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.benefits-list li::before {
    content: '•';
    position: absolute;
    left: 1rem;
    color: var(--tertiary-color);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5rem;
}

.benefits-list li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left: 3px solid var(--tertiary-color);
}

/* Sobre Nosotros */
.about {
    background: var(--bg-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.feature:hover {
    border-left-color: var(--tertiary-color);
    background: var(--tertiary-light);
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Contacto */
.contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.info-item:hover {
    border-left-color: var(--tertiary-color);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h3 {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--tertiary-color);
}

.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 3px var(--tertiary-light), 0 0 0 1px var(--tertiary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

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

/* Galería de Hostelería */
.hosteleria-gallery {
    margin: 4rem 0;
    padding: 3rem 0;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    background: linear-gradient(to bottom, white, var(--tertiary-light));
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-item h3 {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-menu a {
        display: block;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.75rem;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .contact-info {
        width: 100%;
        box-sizing: border-box;
    }
    
    .info-item {
        padding: 1.25rem;
        box-sizing: border-box;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-types {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 0.9rem;
    }

    .hero {
        height: 80vh;
        min-height: 500px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-wrapper {
        gap: 1.5rem;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 16px; /* Evita zoom automático en iOS */
    }
    
    .info-item {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .info-icon {
        font-size: 1.5rem;
    }
    
    /* Asegurar que el contenedor no se desborde */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }
    
    /* Asegurar que la sección de contacto no cause desbordamiento */
    .contact {
        padding: 2rem 0;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0;
    }
    
    /* Asegurar que todas las secciones respeten el ancho en móviles muy pequeños */
    section {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Evitar que el padding cause desbordamiento */
    .service-contact-hero {
        padding: 3rem 1rem;
    }
    
    .service-contact-hero h2 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .service-contact-hero .cta-text {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Botón flotante de WhatsApp */
.whatsapp-bubble {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    animation: bounce-bubble 2s infinite;
    opacity: 0.95;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.whatsapp-float {
    position: relative;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .whatsapp-icon {
    font-size: 1.5rem;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

@media (max-width: 768px) {
    .whatsapp-bubble {
        bottom: 60px;
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }
    
    .whatsapp-float {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float .whatsapp-icon {
        font-size: 1.3rem;
    }
}

/* Páginas de servicio detalle */
.service-detail-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 2rem 0 4rem;
}

/* Sección de Desplazamiento */
.displacement-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.displacement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255, 255, 255, 0.05) 30px,
        rgba(255, 255, 255, 0.05) 60px
    );
}

.displacement-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.displacement-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: drive 3s infinite ease-in-out;
}

@keyframes drive {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(10px);
    }
    75% {
        transform: translateX(-10px);
    }
}

.displacement-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.displacement-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
}

.displacement-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.displacement-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-width: 140px;
    transition: var(--transition);
}

.displacement-feature:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.displacement-feature .feature-icon {
    font-size: 1.8rem;
}

.displacement-feature span:not(.feature-icon) {
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .displacement-section {
        padding: 2.5rem 1.5rem;
    }
    
    .displacement-icon {
        font-size: 2.5rem;
    }
    
    .displacement-title {
        font-size: 1.75rem;
    }
    
    .displacement-text {
        font-size: 1rem;
    }
    
    .displacement-features {
        gap: 1rem;
    }
    
    .displacement-feature {
        padding: 1rem 1.25rem;
        min-width: 110px;
    }
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--tertiary-color);
    transform: translateX(-5px);
}

.service-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 4rem 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 160, 242, 0.85) 0%, rgba(125, 179, 232, 0.8) 40%, rgba(0, 206, 209, 0.75) 100%);
    z-index: 0;
}

.service-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-header .service-intro {
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-intro {
    font-size: 1.1rem;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.problems-section {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border-top: 4px solid var(--tertiary-color);
}

.problems-section h2 {
    font-size: 2rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.problem-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--tertiary-color);
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.problem-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    align-self: flex-start;
}

.problem-content h3 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.problem-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.solution {
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--tertiary-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--tertiary-color);
}

.why-choose-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.why-choose-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.why-choose-section .benefits-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.why-choose-section .benefits-list li {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    border-left: 3px solid var(--tertiary-color);
}

.service-contact-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 160, 242, 0.9) 0%, rgba(125, 179, 232, 0.85) 40%, rgba(0, 206, 209, 0.8) 100%);
    z-index: 0;
}

.service-contact-hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-contact-hero .cta-text {
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-contact-hero .contact-buttons-service {
    position: relative;
    z-index: 1;
}

.contact-section-service {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.contact-section-service h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons-service {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-service {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary-service:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .service-header h1 {
        font-size: 2rem;
    }

    .problems-section {
        padding: 2rem 1.5rem;
    }

    .problem-item {
        flex-direction: column;
        padding: 1.5rem;
    }

    .problem-icon {
        font-size: 2rem;
    }

    .contact-buttons-service {
        flex-direction: column;
        align-items: center;
    }

    .contact-buttons-service .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .contact-section-service {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
        border-radius: 10px;
    }
    
    .contact-section-service h2 {
        font-size: 1.5rem;
    }
    
    .contact-section-service .cta-text {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    /* Ajustes para formularios en páginas de servicio */
    .service-detail-page .contact {
        padding: 2rem 0;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .service-detail-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.cookie-accept {
    background: var(--tertiary-color);
    color: #2c3e50;
}

.cookie-accept:hover {
    background: #35e0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

.cookie-reject {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

