/* =================================================
   ELECTROGILBRA - GESTION.CSS OPTIMIZADO Y RESPONSIVE
   Versión: 28/06/25 - Limpia, sin duplicaciones, mobile-first
   ================================================= */

/* ===============================
   VARIABLES CSS PARA CONSISTENCIA
   =============================== */
:root {
    --primary-green: rgba(24, 64, 8, 1);
    --primary-green-transparent: rgba(24, 64, 8, 0.85);
    --accent-orange: #e6a756;
    --accent-orange-light: #ffb347;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
}

/* ===============================
   ESTILOS BASE MEJORADOS
   =============================== */

body {
    font-family: 'Lora', serif;
    background: linear-gradient(rgba(47, 23, 15, 0.65), rgba(47, 23, 15, 0.65)), url("../img/fondo1.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* ===============================
   RESPONSIVE TYPOGRAPHY
   =============================== */

h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2.5vw, 1.25rem); }
h6 { font-size: clamp(0.9rem, 2vw, 1rem); }

p, .section-content {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.7;
}

/* ===============================
   LAYOUT PRINCIPALES - RESPONSIVE
   =============================== */

.site-heading {
    margin: clamp(2rem, 5vw, 5rem) 0;
    text-transform: uppercase;
    line-height: 1;
    font-family: 'Raleway', sans-serif;
    text-align: center;
}

.site-heading .site-heading-upper {
    display: block;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
}

.site-heading .site-heading-lower {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 100;
    line-height: clamp(2.2rem, 7vw, 4rem);
}

.page-section {
    margin: clamp(2rem, 5vw, 5rem) 0;
    padding: clamp(1rem, 3vw, 2rem) 0;
}

.section-heading {
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.section-heading .section-heading-upper {
    display: block;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 800;
    padding-bottom: 0.5rem;
}

.section-heading .section-heading-lower {
    display: block;
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 100;
}

.section-heading .section-heading-under {
    display: block;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-transform: none;
    font-weight: 300;
    margin-top: 0.5rem;
}

/* ===============================
   NAVEGACIÓN RESPONSIVE
   =============================== */

#mainNav {
    background-color: var(--primary-green);
    font-family: 'Raleway', sans-serif;
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    color: var(--text-white);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
}

#mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 800;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

#mainNav .navbar-nav .nav-item.active .nav-link {
    color: var(--text-white);
    text-decoration: underline;
}

#mainNav .navbar-nav .nav-item .nav-link:hover {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: underline;
}

/* ===============================
   COMPONENTES BÁSICOS
   =============================== */

.text-faded {
    color: rgba(255, 255, 255, 0.3);
}

.bg-faded {
    background-color: rgba(255, 255, 255, 0.85);
}

.btn {
    font-size: clamp(0.9rem, 2vw, 1rem);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0px 3px 3px 0px rgba(33, 37, 41, 0.1);
}

.btn-xl {
    font-weight: 700;
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
}

/* ===============================
   SECCIONES ESPECÍFICAS
   =============================== */

.intro {
    position: relative;
    margin-bottom: 2rem;
}

.cta {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background-color: rgb(242, 245, 240);
}

.cta .cta-inner,
.cta .cta-innerv {
    position: relative;
    padding: clamp(2rem, 5vw, 3rem);
    margin: 0.5rem;
    border-radius: 0.5rem;
}

.cta .cta-inner {
    background-color: var(--primary-green);
    color: cornsilk;
}

.cta .cta-inner:before {
    border-radius: 0.5rem;
    content: '';
    position: absolute;
    top: -0.5rem;
    bottom: -0.5rem;
    left: -0.5rem;
    right: -0.5rem;
    border: 0.25rem solid rgba(255, 255, 255, 0.85);
}

.cta .cta-innerv {
    background-color: rgba(255, 255, 255, 0.85);
}

.footer {
    background-color: rgba(24, 64, 8, 0.8);
    padding: clamp(2rem, 5vw, 3rem) 0;
    margin-top: clamp(3rem, 8vw, 5rem);
}

/* ===============================
   UTILIDADES RESPONSIVAS
   =============================== */

.font-weight-light {
    font-weight: 100 !important;
}

.mbtm {
    padding-top: clamp(3rem, 8vw, 5rem);
}

.mbt {
    padding-top: clamp(1.5rem, 4vw, 2rem);
}

.mbt1 {
    padding-top: clamp(1rem, 3vw, 1.25rem);
}

a.link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

a.link:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
}

.section-content {
    font-family: 'Lora', serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 400;
    line-height: 1.7;
}

/* ===============================
   FORMULARIOS RESPONSIVE
   =============================== */

ul.errorlist {
    padding-top: 0.75rem;
    font-style: italic;
    color: red;
    margin: 0;
}

.contenedorFormulario {
    background-color: var(--primary-green);
    width: clamp(90%, 80vw, 50%);
    margin: 10px auto;
    border-radius: 5px;
    padding: clamp(1rem, 3vw, 2rem);
}

.form-control {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.2rem rgba(230, 167, 86, 0.25);
    outline: none;
}

/* ===============================
   HERO SECTION OPTIMIZADA
   =============================== */

.min-vh-75 {
    min-height: clamp(50vh, 75vh, 75vh);
}

.text-orange {
    color: var(--accent-orange) !important;
}

.hero-section {
    background: linear-gradient(135deg, rgba(24, 64, 8, 0.4) 0%, rgba(47, 23, 15, 0.5) 50%, rgba(24, 64, 8, 0.45) 100%);
    padding: clamp(3rem, 10vw, 80px) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(230, 167, 86, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.8rem, 7vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
    text-shadow: 
        0 0 15px rgba(0, 0, 0, 1),
        0 0 25px rgba(0, 0, 0, 0.9),
        2px 2px 6px rgba(0, 0, 0, 1);
}

.hero-title .text-white {
    color: var(--text-white) !important;
}

.hero-title .text-orange {
    color: #ffcc66 !important;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.98) !important;
    margin-bottom: 2rem;
    line-height: 1.75;
    font-family: 'Lora', serif;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-actions {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.btn-orange {
    background: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    color: white !important;
    transition: all 0.3s ease;
    font-weight: 700;
    border-radius: 0.5rem;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

.btn-orange:hover {
    background: rgba(230, 167, 86, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 167, 86, 0.4);
}

.hero-section .btn-primary {
    background: var(--primary-green-transparent) !important;
    border-color: var(--primary-green-transparent) !important;
    color: white !important;
    font-weight: 700;
    border-radius: 0.5rem;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

.hero-section .btn-primary:hover {
    background: var(--primary-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 64, 8, 0.4);
}

/* ===============================
   BADGES HERO RESPONSIVE
   =============================== */

.hero-badges {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.badge-item {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 18px);
    border-radius: 0.5rem;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.4);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 800;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid rgba(230, 167, 86, 0.3);
    font-family: 'Raleway', sans-serif;
}

.badge-item:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--accent-orange);
}

.badge-item i {
    margin-right: 8px;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.badge-item span {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: var(--primary-green) !important;
    font-weight: 700;
}

/* ===============================
   SERVICIOS MODERNOS RESPONSIVE
   =============================== */

.modern-services {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: linear-gradient(135deg, rgba(24, 64, 8, 0.75) 0%, rgba(47, 23, 15, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.modern-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 167, 86, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(24, 64, 8, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.modern-section-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 3rem;
}

.modern-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(230, 167, 86, 0.2);
    color: var(--accent-orange);
    border: 1px solid rgba(230, 167, 86, 0.3);
    border-radius: 50px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    font-family: 'Raleway', sans-serif;
}

.modern-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-family: 'Raleway', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Lora', serif;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===============================
   CARDS MODERNAS RESPONSIVE
   =============================== */

.modern-service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.modern-service-card.featured {
    min-height: clamp(300px, 60vw, 500px);
}

.modern-service-card.compact {
    min-height: clamp(150px, 30vw, 200px);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.modern-service-card:hover .card-background {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-color: rgba(230, 167, 86, 0.4);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon-modern {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.service-icon-modern i {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: white;
}

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

.modern-service-card h3,
.modern-service-card h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.modern-service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: 'Lora', serif;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.service-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(230, 167, 86, 0.2);
    color: var(--accent-orange);
    border: 1px solid rgba(230, 167, 86, 0.3);
    border-radius: 20px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 167, 86, 0.4);
    color: white;
    text-decoration: none;
}

/* ===============================
   SERVICIOS HORIZONTALES
   =============================== */

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

.horizontal-service {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.horizontal-service:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(230, 167, 86, 0.3);
    transform: translateY(-3px);
}

.horizontal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green-transparent), rgba(24, 64, 8, 0.6));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.horizontal-icon i {
    color: var(--accent-orange);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.horizontal-content h5 {
    color: var(--text-white);
    margin-bottom: 0.2rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}

.horizontal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    font-family: 'Lora', serif;
}

/* ===============================
   CTA MODERNO
   =============================== */

.modern-cta {
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin-top: 3rem;
}

.modern-cta h3 {
    color: var(--text-white);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.modern-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 2rem;
    font-family: 'Lora', serif;
}

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

.btn-modern {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn-modern.primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-modern.secondary {
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
}

.btn-modern:hover {
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-modern.primary:hover {
    color: white;
}

.btn-modern.secondary:hover {
    background: var(--accent-orange);
    color: white;
}

/* ===============================
   BLOG RESPONSIVE
   =============================== */

.content-section {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: #f8f9fa !important;
    padding: clamp(2rem, 6vw, 4rem) 0 !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.blog-content-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 clamp(15px, 4vw, 20px) !important;
    width: 100% !important;
}

.post-content {
    width: 100% !important;
    font-size: clamp(1rem, 2.5vw, 1.1rem) !important;
    text-align: justify !important;
    line-height: 1.8 !important;
}

.post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    margin: 20px auto !important;
    display: block !important;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: #2c5aa0 !important;
}

.post-content p {
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
}

.post-content ul, .post-content ol {
    margin: 1.5rem 0 !important;
    padding-left: 2rem !important;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-orange) !important;
    margin: 1.5rem 0 !important;
    padding: 1rem 1.5rem !important;
    background-color: #ffffff !important;
    font-style: italic !important;
    border-radius: 4px !important;
}

.post-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
}

.post-content table th {
    background-color: var(--accent-orange) !important;
    color: white !important;
    font-weight: bold !important;
    padding: 8px 12px !important;
}

.post-content table td {
    border: 1px solid #ddd !important;
    padding: 8px 12px !important;
}

.post-content pre, .post-content code {
    background-color: #f1f3f4 !important;
    padding: 0.5rem !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    overflow-x: auto !important;
    font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* MÓVILES PEQUEÑOS (< 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .min-vh-75 {
        min-height: 40vh !important;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        text-align: center !important;
        margin: 0 0.5rem 1.5rem 0.5rem !important;
        padding: 1rem !important;
    }
    
    .hero-actions {
        text-align: center !important;
        margin-top: 1.5rem !important;
    }
    
    .hero-actions .btn {
        display: block !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
        font-size: 0.9rem !important;
    }
    
    .hero-badges {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-top: 1.5rem !important;
        transform: none !important;
    }
    
    .badge-item {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.8rem !important;
        margin: 0.2rem !important;
        flex: 0 1 auto !important;
        min-width: 80px !important;
        text-align: center !important;
    }
    
    .modern-services {
        padding: 2rem 0 !important;
    }
    
    .modern-service-card.featured {
        min-height: auto !important;
        margin-bottom: 1rem !important;
    }
    
    .card-content {
        padding: 1.2rem !important;
    }
    
    .services-grid-horizontal {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    .horizontal-service {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1rem !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .btn-modern {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .page-section {
        margin: 1.5rem 0 !important;
        padding: 1rem 0 !important;
    }
    
    .site-heading {
        margin: 1.5rem 0 !important;
    }
    
    .cta {
        padding: 2rem 0 !important;
    }
    
    .cta .cta-inner,
    .cta .cta-innerv {
        padding: 1.5rem !important;
        margin: 0.25rem !important;
    }
    
    .contenedorFormulario {
        width: 95% !important;
        padding: 1rem !important;
    }
    
    .footer {
        padding: 2rem 0 !important;
        margin-top: 2rem !important;
    }
    
    /* Navegación móvil */
    #mainNav .navbar-nav .nav-item .nav-link {
        padding: 0.8rem 0.5rem !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Grid responsive */
    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
    
    [class*="col-"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* MÓVILES GRANDES (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0 !important;
    }
    
    .min-vh-75 {
        min-height: 60vh !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        text-align: center !important;
    }
    
    .hero-subtitle {
        text-align: center !important;
        margin: 0 1rem 2rem 1rem !important;
    }
    
    .hero-badges {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        margin-top: 2rem !important;
        transform: none !important;
    }
    
    .modern-services {
        padding: 3rem 0 !important;
    }
    
    .services-grid-horizontal {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
    
    .contenedorFormulario {
        width: 80% !important;
    }
}

/* TABLETS (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 5rem 0 !important;
    }
    
    .modern-services {
        padding: 4rem 0 !important;
    }
    
    .modern-service-card .card-content {
        padding: 2rem !important;
    }
    
    .contenedorFormulario {
        width: 70% !important;
    }
    
    .cta {
        padding: 3rem 0 !important;
    }
}

/* DESKTOP PEQUEÑO (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .intro .intro-img {
        width: 75%;
        float: left;
    }
    
    .intro .intro-text {
        left: 600px;
        width: 60%;
        margin-top: 3rem;
        background-color: var(--primary-green);
        color: cornsilk;
        position: absolute;
    }
    
    .intro .intro-text .intro-button {
        width: 100%;
        left: 0;
        position: absolute;
        bottom: -2rem;
    }
    
    .about-heading .about-heading-img {
        position: relative;
        z-index: 0;
    }
    
    .about-heading .about-heading-content {
        margin-top: -5rem;
        position: relative;
        z-index: 1;
    }
    
    .product-item .product-item-title {
        position: relative;
        z-index: 1;
        margin-bottom: -3rem;
    }
    
    .product-item .product-item-img {
        position: relative;
        z-index: 0;
        max-width: 60vw;
    }
    
    .product-item .product-item-description {
        position: relative;
        z-index: 1;
        margin-top: -3rem;
        max-width: 50vw;
    }
    
    .list-hours {
        width: 50%;
        font-size: 1.1rem;
    }
}

/* DESKTOP GRANDE (≥ 1200px) */
@media (min-width: 1200px) {
    .intro .intro-text {
        width: 45%;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* ===============================
   MODO LANDSCAPE EN MÓVILES
   =============================== */

@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0 !important;
        min-height: 70vh !important;
    }
    
    .hero-title {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0.8rem 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-badges {
        margin-top: 1rem !important;
    }
    
    .badge-item {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
}

/* ===============================
   UTILIDADES Y ANIMACIONES
   =============================== */

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

/* Transiciones optimizadas */
* {
    box-sizing: border-box;
}

/* Evitar scroll horizontal */
html, body {
    overflow-x: hidden;
}

/* Animaciones suaves */
.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-image {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animación flotante para elementos hero */
.robot-animation {
    animation: float 3s ease-in-out infinite;
}

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

/* Animaciones sutiles para títulos */
.hero-title {
    animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% { 
        text-shadow: 
            0 0 15px rgba(0, 0, 0, 1),
            0 0 25px rgba(0, 0, 0, 0.9),
            2px 2px 6px rgba(0, 0, 0, 1);
    }
    50% { 
        text-shadow: 
            0 0 20px rgba(0, 0, 0, 1),
            0 0 30px rgba(0, 0, 0, 0.9),
            0 0 40px rgba(230, 167, 86, 0.3),
            2px 2px 8px rgba(0, 0, 0, 1);
    }
}

/* ===============================
   ACCESIBILIDAD
   =============================== */

/* Focus visible mejorado */
*:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Reducir movimiento para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Contraste mejorado para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    .card-background {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .modern-service-card:hover .card-background {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ===============================
   ESTILOS ADICIONALES ESPECÍFICOS
   =============================== */

.address strong {
    font-size: clamp(1rem, 3vw, 1.2rem);
}

/* Estados de loading */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilidades de espaciado mobile */
.mb-mobile-1 { margin-bottom: 0; }
.mb-mobile-2 { margin-bottom: 0; }
.text-mobile-center { text-align: left; }

@media (max-width: 768px) {
    .mb-mobile-1 { margin-bottom: 1rem !important; }
    .mb-mobile-2 { margin-bottom: 2rem !important; }
    .text-mobile-center { text-align: center !important; }
    .d-mobile-none { display: none !important; }
}

/* ===============================
   FIN DEL ARCHIVO CSS OPTIMIZADO
   =============================== */