/* ============================================================
   Dylan Contractors LLC - Main Stylesheet
   Color Palette:
   - Primary (Orange):    #fd7806
   - Secondary (Blue):    #03254a
   - Background:          #ffffff
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #ffffff;
    background-image: url('../src/images/bg-footal.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: #03254a;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.section-title {
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title span {
    color: #fd7806;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: #fd7806;
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* === TOP BAR (MARQUEE) === */
.top-bar {
    background: #03254a;
    color: #ffffff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
}

.marquee-content {
    display: inline-flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === HEADER === */
.main-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

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

/* Contenedor seguro del logo para evitar desbordes */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 140%;
}

.logo img {
    height: 150px; /* Tamaño prominente y elegante */
    max-height: 85%; /* Blindaje: NUNCA pasará del alto permitido del header */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: #fd7806;
    background: rgba(253, 120, 6, 0.08);
}

/* Dropdown Menu (Desktop: Hover to open - Only 3 main landing pages) */
.has-dropdown {
    position: relative;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 290px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    animation: dropdownFade 0.3s ease;
}

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

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
}

.dropdown-menu li a i {
    color: #fd7806;
    font-size: 0.95rem;
    width: 18px;
}

.dropdown-menu li a:hover {
    background: rgba(253, 120, 6, 0.08);
    color: #fd7806;
    padding-left: 25px;
}
    transition: all 0.2s ease;
    text-transform: none;
}

.dropdown-section li a:hover {
    background: rgba(253, 120, 6, 0.08);
    color: #fd7806;
    padding-left: 14px;
}

.dropdown-section li a i {
    color: #fd7806;
    font-size: 0.9rem;
    width: 18px;
}

.other-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}

/* Header Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #03254a;
    font-weight: 700;
    font-size: 1rem;
}

.header-phone i {
    color: #fd7806;
    font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle i {
    font-size: 24px;
    color: #333;
}

/* === MOBILE SIDEBAR === */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 22px 15px 12px;
    border-bottom: 1px solid #eee;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #03254a;
    border: 2px solid #03254a;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    transition: all 0.25s ease;
}

.sidebar-close:hover {
    background: #fd7806;
    border-color: #fd7806;
    color: #ffffff;
    transform: scale(1.05);
}

.sidebar-close:focus-visible {
    outline: 3px solid rgba(253, 120, 6, 0.35);
    outline-offset: 2px;
}

.sidebar-menu {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    padding: 12px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar-menu a:hover {
    background: #f5f5f5;
}

.sidebar-menu a i {
    width: 20px;
    margin-right: 8px;
    color: #fd7806;
}

/* SERVICES section - estilo para móvil */
.services-section {
    width: 100%;
    margin: 5px 0;
}

.services-title {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.services-title i.service-icon {
    color: #fd7806;
    margin-right: 8px;
}

.services-title i.chevron-icon {
    color: #03254a;
    transition: transform 0.3s ease;
}

.services-section.open .services-title i.chevron-icon {
    transform: rotate(180deg);
}

.services-subitems {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 10px;
}

.services-section.open .services-subitems {
    display: flex;
}

.mobile-sub-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fd7806;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 2px;
    display: block;
    margin-top: 4px;
}

.services-subitems a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #555;
    border-radius: 4px;
}
    color: #666;
}

.services-subitems a i {
    width: 20px;
    color: #fd7806;
    font-size: 14px;
}

.services-subitems a:hover {
    background: #f5f5f5;
}

.sidebar-quote {
    background: #fd7806;
    color: white !important;
    text-align: center;
    margin-top: 15px;
}

.sidebar-quote:hover {
    background: #e06800 !important;
    color: white !important;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #fd7806;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e06800;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 120, 6, 0.3);
}

.btn-secondary {
    background: #03254a;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #021a35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 37, 74, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: #03254a;
}

.btn-white {
    background: #ffffff;
    color: #03254a;
    font-size: 1.1rem;
    padding: 16px 40px;
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 40px 20px;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide[style*="background-image"] {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 37, 74, 0.55);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    animation: heroFadeIn 1.2s ease forwards;
}

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

.top-tagline {
    display: inline-block;
    background: rgba(253, 120, 6, 0.25);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(253, 120, 6, 0.5);
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content h1 span {
    color: #fd7806;
    background: rgba(3, 37, 74, 0.7);
    padding: 0 12px;
    border-radius: 5px;
    display: inline-block;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.feature-item i {
    color: #fd7806;
    font-size: 1.2rem;
}

.feature-item p {
    margin-bottom: 0;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn-quote-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fd7806;
    color: #fff;
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-quote-large:hover {
    background: #e06800;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 120, 6, 0.4);
}

.stars-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #fd7806;
    color: #ffffff;
}

.stars-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.stars-text span {
    color: #fd7806;
    font-weight: 600;
}

.hero-hours {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Estimate Form Box */
.estimate-box {
    width: 380px;
    min-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    flex-shrink: 0;
    animation: heroFadeIn 1.4s ease forwards;
}

.form-header {
    background: #03254a;
    color: #ffffff;
    text-align: center;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.estimate-form {
    padding: 25px;
}

.estimate-form .form-row {
    display: flex;
    gap: 12px;
}

.estimate-form .form-row input {
    flex: 1;
}

.estimate-form input,
.estimate-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.estimate-form input:focus,
.estimate-form textarea:focus {
    outline: none;
    border-color: #fd7806;
}

.estimate-form textarea {
    min-height: 90px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: #fd7806;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #e06800;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 120, 6, 0.3);
}

/* === TRUST BAR === */
.trust-bar {
    background: #03254a;
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.trust-item img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.trust-item span {
    color: rgba(255,255,255,0.95);
}

/* === ABOUT SECTION === */
section {
    padding: 80px 0;
}

.about-section {
    padding: 80px 0;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-content h2 {
    margin-bottom: 10px;
}

/* === ABOUT (WELCOME) TYPOGRAPHY ENHANCEMENT === */
.about-section.section-bg-footall .about-content h2 {
    color: #111111;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: 0.2px;
    font-weight: 700;
    text-shadow: none;
}

.about-section.section-bg-footall .about-content .section-subtitle {
    color: #111111 !important;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.05rem !important;
    letter-spacing: 2.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    text-shadow: none;
}

.about-section.section-bg-footall .about-content p {
    color: #111111;
    font-size: 1.04rem;
    line-height: 1.85;
}

.about-section.section-bg-footall .about-feature {
    color: #111111;
    font-weight: 600;
}

.about-content h2 span {
    color: #fd7806;
}

.about-content p {
    font-size: 1.05rem;
    color: #555;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.about-feature i {
    color: #fd7806;
    font-size: 1.1rem;
}

/* === LIGHT BACKGROUND SECTION === */
.light-bg {
    background: #f8fafc;
}

/* === SECTION BACKGROUND (LOW BRIGHTNESS) === */
.section-bg-footall {
    background: transparent;
}

.section-bg-footall .section-title,
.section-bg-footall .section-subtitle,
.section-bg-footall h2,
.section-bg-footall h3,
.section-bg-footall p {
    color: #ffffff;
}

.section-bg-footall .section-title span {
    color: #fd7806;
}

.section-bg-footall .section-divider {
    background: #fd7806;
}

/* === HOME: FIXED TITLE/SUBTITLE VISIBILITY === */
.section-bg-footall .section-title,
.section-bg-footall .section-subtitle {
    text-align: center;
}

.section-bg-footall .section-title,
.section-bg-footall .section-subtitle,
.portfolio-section .section-title,
.portfolio-section .section-subtitle {
    color: #03254a !important;
}

/* === SERVICES GRID === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(253, 120, 6, 0.15);
    border-color: #fd7806;
}

.service-card .icon {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(253, 120, 6, 0.2);
}

.service-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-card .icon img[src] {
    background: rgba(253, 120, 6, 0.1);
}

.service-card:hover .icon {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(253, 120, 6, 0.25);
    border-color: #fd7806;
}

.service-card:hover .icon img {
    transform: scale(1.08);
}

.service-card h3 {
    margin-bottom: 12px;
    color: #03254a;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === WHY CHOOSE GRID === */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: #f8fafc;
}

.why-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #fd7806;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.why-card h3 {
    color: #03254a;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.why-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === TESTIMONIALS === */
.testimonials {
    background: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.author-img {
    width: 45px;
    height: 45px;
    background: #fd7806;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.author-role {
    font-size: 0.85rem;
    color: #888;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, #fd7806 0%, #03254a 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === PAGE HEADER === */
.page-header {
    background-image: linear-gradient(rgba(3, 37, 74, 0.75), rgba(3, 37, 74, 0.75)), url('../src/images/cabecera.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}

.page-header.page-header-inner {
    background-image: linear-gradient(rgba(3, 37, 74, 0.75), rgba(3, 37, 74, 0.75)), url('../src/images/cabecera.jpg');
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.55);
}

.page-header p {
    color: rgba(255,255,255,0.92);
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* === CONTACT PAGE === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
}

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail i {
    width: 45px;
    height: 45px;
    background: #fd7806;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    margin-bottom: 3px;
    color: #03254a;
    font-size: 1rem;
}

.contact-detail p, .contact-detail a {
    color: #555;
    font-size: 0.95rem;
}

.maps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

/* === SERVICES LIST === */
.services-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.services-list-item {
    background: #f8fafc;
    padding: 15px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.services-list-item:hover {
    background: #fd7806;
    color: #fff;
    border-color: #fd7806;
    transform: translateY(-2px);
}

.services-list-item i {
    color: #fd7806;
    font-size: 0.8rem;
}

.services-list-item:hover i {
    color: #fff;
}

/* === CONTACT FORM === */
.contact-form {
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.contact-form h2 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #fd7806;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === FOOTER === */
footer {
    background-color: #03254a;
    background-image: linear-gradient(rgba(3, 37, 74, 0.85), rgba(3, 37, 74, 0.85)), url('../src/images/bg-footer.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: rgba(255,255,255,0.85);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 100px;
    width: auto;
    margin-bottom: 15px;
}

footer h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

footer p {
    font-size: 0.95rem;
    line-height: 1.7;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer ul li a::before {
    content: "\203A";
    font-size: 1.2rem;
    color: #fd7806;
}

footer ul li a:hover {
    color: #fd7806;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: #fd7806;
}

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        align-items: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .estimate-box {
        width: 100%;
        max-width: 450px;
    }

    .services-grid,
    .why-choose-grid,
    .testimonial-grid,
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .maps-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }

    section {
        padding: 50px 0;
    }

    /* Mobile - hide desktop nav, show toggle */
    .desktop-nav,
    .header-right {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .main-header {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .logo img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 100px !important;
    }

    .mobile-menu-toggle {
        flex-shrink: 0 !important;
    }

    .header-inner {
        height: 80px;
    }

    /* Hero mobile adjustments */
    .hero {
        min-height: auto;
        padding: 40px 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .top-tagline {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-features .feature-item {
        font-size: 0.95rem;
    }

    .btn-quote-large {
        font-size: 0.95rem;
        padding: 14px 24px;
    }

    .stars-rating {
        flex-direction: column;
        text-align: center;
    }

    .estimate-box {
        width: 100%;
        min-width: unset;
        max-width: 400px;
    }

    .estimate-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Sidebar mobile */
    .mobile-sidebar {
        width: 85% !important;
        max-width: 320px !important;
        right: -85% !important;
    }

    .mobile-sidebar.open {
        right: 0 !important;
    }

    .sidebar-menu a,
    .services-title,
    .services-subitems a {
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Trust bar mobile */
    .trust-bar {
        gap: 20px;
        padding: 15px;
    }

    .trust-item img {
        height: 20px;
    }
    
    .trust-item span {
        font-size: 0.85rem;
    }

    .about-grid {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        flex: none;
        width: 100%;
    }

    .services-grid,
    .why-choose-grid,
    .testimonial-grid,
    .services-list,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .top-bar {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    /* CTA mobile */
    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-quote-large {
        width: 100%;
        justify-content: center;
    }

    .stars-rating {
        flex-direction: row;
        justify-content: center;
    }

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

    .mobile-sidebar {
        width: 90% !important;
        right: -90% !important;
        max-width: none !important;
    }

    .logo img {
        max-height: 85px !important;
    }

    .sidebar-menu a,
    .services-title {
        font-size: 14px !important;
        padding: 10px !important;
    }

    .services-subitems a {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }

    .estimate-box {
        max-width: 100%;
    }
}

/* Body scroll lock when sidebar open */
body.sidebar-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================
   FLOATING SOCIAL / CONTACT BAR & CHATBOT STYLES
   ========================================================== */

.floating-social-bar {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 1200 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    pointer-events: auto !important;
}

.floating-btn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.floating-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
    filter: brightness(1.05);
}

.floating-phone {
    background-color: #fd7806 !important;
}

.floating-facebook {
    background-color: #1877f2 !important;
}

.floating-whatsapp {
    background-color: #ffffff !important;
    border: 2px solid #25d366 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.floating-whatsapp img,
.floating-whatsapp svg {
    width: 28px !important;
    height: 28px !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
}

/* === CHATBOT STYLES === */
.kb-chatbot {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 99999 !important;
    display: block !important;
    visibility: visible !important;
}

.kb-chatbot-toggle {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    background: #03254a !important;
    color: #fff !important;
    font-size: 24px !important;
    box-shadow: 0 4px 15px rgba(3, 37, 74, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.kb-chatbot-toggle:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(253, 120, 6, 0.4) !important;
}

.kb-chatbot-panel {
    display: none;
    position: absolute !important;
    bottom: 70px !important;
    left: 0 !important;
    width: 340px !important;
    max-width: calc(100vw - 32px);
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(3, 37, 74, 0.25) !important;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: kbChatFadeIn 0.25s ease-out;
}

@keyframes kbChatFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.kb-chatbot.open .kb-chatbot-panel,
.kb-chatbot.active .kb-chatbot-panel {
    display: flex !important;
    flex-direction: column !important;
}

.kb-chatbot-header {
    background: linear-gradient(135deg, #03254a 0%, #0a3d75 100%);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kb-chatbot-header-title {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #ffffff;
}

.kb-chatbot-header strong {
    color: #ffffff;
    font-weight: 700;
}

.kb-chatbot-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.kb-chatbot-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.kb-chat-messages {
    padding: 14px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.kb-msg {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.45;
    word-break: break-word;
}

.kb-msg.bot {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.kb-msg.user {
    background: #03254a;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 4px rgba(3,37,74,0.15);
}

.kb-services-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.kb-service-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #fd7806;
    border-radius: 8px;
    color: #03254a;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.kb-service-link-item:hover {
    background: #fff7ed;
    border-color: #fd7806;
    color: #fd7806;
    transform: translateX(3px);
}

.kb-chat-input-area {
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.kb-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kb-action-pill {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kb-btn-primary {
    background: #fd7806;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(253, 120, 6, 0.3);
}

.kb-btn-primary:hover {
    background: #e56a00;
    transform: translateY(-1px);
}

.kb-btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.kb-btn-secondary:hover {
    background: #e2e8f0;
}

.kb-btn-phone {
    background: #03254a;
    color: #ffffff;
}

.kb-btn-phone:hover {
    background: #0a3d75;
}

.kb-quick-service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.kb-mini-pill {
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.78rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kb-mini-pill:hover {
    background: #fff4ec;
    border-color: #fd7806;
    color: #fd7806;
}

.kb-chat-form {
    width: 100%;
}

.kb-input-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
}

.kb-chat-input-row {
    display: flex;
    gap: 6px;
}

.kb-chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-chat-input:focus {
    border-color: #fd7806;
    box-shadow: 0 0 0 2px rgba(253, 120, 6, 0.15);
}

.kb-chat-send-btn {
    background: #fd7806;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kb-chat-send-btn:hover {
    background: #e56a00;
}

.kb-input-error {
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 5px;
    padding-left: 2px;
}

.kb-success-card {
    text-align: center;
    padding: 6px 2px;
}

.kb-error-card {
    padding: 4px 2px;
}

.kb-loading-dots {
    color: #03254a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
}

.kb-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kb-faq-btn {
    border: 1px solid #d8e3ef;
    background: #f8fbff;
    color: #1f2937;
    border-radius: 8px;
    padding: 9px 10px;
    text-align: left;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kb-faq-btn:hover {
    background: #fff4ec;
    border-color: #fd7806;
}

/* === TOAST & ALERTS === */
.form-notification-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: toastSlideIn 0.35s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-notification-toast.toast-success {
    background: #03254a;
    color: #ffffff;
    border-left: 5px solid #10b981;
}

.form-notification-toast.toast-error {
    background: #03254a;
    color: #ffffff;
    border-left: 5px solid #ef4444;
}

.form-notification-toast i.toast-icon {
    font-size: 1.3rem;
    margin-top: 2px;
}

.form-notification-toast.toast-success i.toast-icon {
    color: #10b981;
}

.form-notification-toast.toast-error i.toast-icon {
    color: #ef4444;
}

.form-notification-toast .toast-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.75;
}

.form-notification-toast .toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-success-alert {
    background: #ecfdf5;
    border: 2px solid #10b981;
    color: #065f46;
    padding: 18px 20px;
    border-radius: 10px;
    text-align: center;
    margin: 15px 0;
    animation: toastSlideIn 0.3s ease-out;
}

.form-success-alert h4 {
    margin: 0 0 6px 0;
    color: #047857;
    font-size: 1.15rem;
    font-weight: 700;
}

.form-success-alert p {
    margin: 0;
    font-size: 0.92rem;
    color: #065f46;
}

.form-error-alert {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 0.92rem;
    animation: toastSlideIn 0.3s ease-out;
}

/* === PORTFOLIO / COVERFLOW GALLERY === */
.portfolio-section {
    background: #f8fafc;
    padding: 80px 0;
    overflow: hidden;
}

.portfolio-section.section-bg-footall {
    background: transparent;
}

.coverflow-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coverflow-container:focus {
    outline: none;
}

.coverflow-container:active {
    cursor: grabbing;
}

.coverflow-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.coverflow-card:hover {
    box-shadow: 0 15px 50px rgba(2, 180, 225, 0.25) !important;
}

/* === PAGE SPECIFIC === */
.page-content {
    padding: 60px 0;
}

.page-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content ul, .page-content ol {
    margin: 15px 0 15px 20px;
}

.page-content ul li, .page-content ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.inner-hero {
    padding: 60px 0;
}

/* === MEDIA QUERIES === */
@media (max-width: 768px) {
    .floating-social-bar {
        right: max(15px, env(safe-area-inset-right)) !important;
        bottom: max(15px, env(safe-area-inset-bottom)) !important;
        gap: 10px !important;
    }

    .floating-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }

    .floating-whatsapp img,
    .floating-whatsapp svg {
        width: 24px !important;
        height: 24px !important;
    }

    .kb-chatbot {
        bottom: 20px !important;
        left: 15px !important;
    }

    .kb-chatbot-toggle {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }

    .kb-chatbot-panel {
        width: min(320px, calc(100vw - 30px)) !important;
        max-width: min(320px, calc(100vw - 30px)) !important;
        bottom: 55px !important;
    }

    .kb-chat-messages {
        height: 260px;
        padding: 12px;
    }

    .portfolio-section {
        padding: 50px 0;
    }
    
    .coverflow-container {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .floating-social-bar {
        right: max(10px, env(safe-area-inset-right)) !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        gap: 8px !important;
    }

    .floating-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
    }

    .kb-chatbot {
        bottom: 15px !important;
        left: 10px !important;
    }

    .kb-chatbot-toggle {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
    }

    .kb-chatbot-panel {
        width: min(300px, calc(100vw - 20px)) !important;
        max-width: min(300px, calc(100vw - 20px)) !important;
        border-radius: 12px;
    }

    .kb-chat-messages {
        height: 240px;
        padding: 10px;
    }

    .coverflow-container {
        min-height: 260px;
    }
}
/* ==========================================================
   SERVICES LIST RESPONSIVE - 2 COLUMNS ON MOBILE
   ========================================================== */
.services-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Por defecto en PC (ajusta si tienes otro valor) */
    gap: 15px !important;
}

@media (max-width: 992px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr) !important; /* Cambia exactamente a 2 columnas en tablets y celulares */
    }
}

@media (max-width: 480px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr) !important; /* Forzar 2 columnas incluso en pantallas muy pequeñas */
        gap: 10px !important;
    }
    
    .services-list-item {
        font-size: 0.85rem !important;
        padding: 10px 8px !important;
    }
}
/* ==========================================================
   TESTIMONIALS - STATIC ON WEB, SCROLLING ON MOBILE
   ========================================================== */

/* Modo Web (Estático y en cuadrícula normal de 3 columnas) */
.testimonials .testimonial-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    animation: none !important;
}

.testimonials .testimonial-card {
    width: 100% !important;
    flex: unset !important;
    margin: 0 !important;
}

/* Modo Responsive / Móvil (Una sola línea en movimiento continuo) */
@media (max-width: 992px) {
    .testimonials {
        overflow: hidden !important;
        width: 100% !important;
    }

    .testimonials .testimonial-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        width: max-content !important;
        animation: testimonialScroll 30s linear infinite !important;
    }

    .testimonials .testimonial-grid:hover {
        animation-play-state: paused !important;
    }

    .testimonials .testimonial-card {
        flex: 0 0 300px !important;
        width: 300px !important;
    }
}

@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 3 - 60px));
    }
}