/* ============================================================
   KB CLEAN UP - Main Stylesheet
   Color Palette:
   - Primary (Cyan):      #02b4e1
   - Secondary (Dark Blue): #026eb5
   - 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-footall.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: #026eb5;
    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: #02b4e1;
}

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

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

/* === TOP BAR (MARQUEE) === */
.top-bar {
    background: #02b4e1;
    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: #02b4e1;
    background: rgba(2, 180, 225, 0.08);
}

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

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

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

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(2, 180, 225, 0.08);
    color: #02b4e1;
    padding-left: 25px;
}

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

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

.header-phone i {
    color: #02b4e1;
    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: #026eb5;
    border: 2px solid #026eb5;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    transition: all 0.25s ease;
}

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

.sidebar-close:focus-visible {
    outline: 3px solid rgba(2, 180, 225, 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: #02b4e1;
}

/* 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;
    gap: 8px;
}

.services-title i {
    color: #02b4e1;
}

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

.services-subitems a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
}

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

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

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

.sidebar-quote:hover {
    background: #019ac3 !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: #02b4e1;
    color: #ffffff;
}

.btn-primary:hover {
    background: #019ac3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 180, 225, 0.3);
}

.btn-secondary {
    background: #026eb5;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #015a94;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 110, 181, 0.3);
}

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

.btn-outline:hover {
    background: #ffffff;
    color: #026eb5;
}

.btn-white {
    background: #ffffff;
    color: #026eb5;
    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 (NEW - Based on landscaping example) === */
.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(0, 0, 0, 0.15);
    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(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.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.2);
}

.hero-content h1 span {
    color: #02b4e1;
    background: rgba(255,255,255,0.15);
    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: #02b4e1;
    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: #02b4e1;
    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: #019ac3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 180, 225, 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: #fff;
    color: #026eb5;
}

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

.stars-text span {
    color: #02b4e1;
    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: #026eb5;
    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: #02b4e1;
}

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

.btn-submit {
    width: 100%;
    background: #02b4e1;
    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: #019ac3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 180, 225, 0.3);
}

/* === TRUST BAR === */
.trust-bar {
    background: #026eb5;
    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: #02b4e1;
}

.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: #02b4e1;
    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: #02b4e1;
}

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

/* === 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: #026eb5 !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(2, 180, 225, 0.12);
    border-color: #02b4e1;
}

.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(2, 180, 225, 0.15);
}

.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(2, 180, 225, 0.1);
}

.service-card:hover .icon {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(2, 180, 225, 0.25);
    border-color: #02b4e1;
}

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

.service-card h3 {
    margin-bottom: 12px;
    color: #026eb5;
}

.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: #02b4e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.why-card h3 {
    color: #026eb5;
    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: #02b4e1;
    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, #02b4e1 0%, #026eb5 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(5, 18, 35, 0.55), rgba(5, 18, 35, 0.55)), 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(5, 18, 35, 0.55), rgba(5, 18, 35, 0.55)), 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: #02b4e1;
    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: #026eb5;
    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: #02b4e1;
    color: #fff;
    border-color: #02b4e1;
    transform: translateY(-2px);
}

.services-list-item i {
    color: #02b4e1;
    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: #02b4e1;
}

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

/* === FOOTER === */
footer {
    background-color: #026eb5;
    background-image: linear-gradient(rgba(5, 18, 35, 0.75), rgba(5, 18, 35, 0.75)), 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: #02b4e1;
}

footer ul li a:hover {
    color: #02b4e1;
    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: #02b4e1;
}

/* === 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 === */
.floating-social-bar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column-reverse; /* abajo -> arriba */
    gap: 12px;
}

.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    filter: brightness(1.05);
}

.floating-whatsapp { background: #25D366; }
.floating-facebook { background: #1877F2; }
.floating-google { background: #DB4437; }

.kb-chatbot {
    position: fixed;
    right: 18px;
    bottom: 210px;
    z-index: 1250;
}

.kb-chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #026eb5 0%, #02b4e1 100%);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 14px 30px rgba(2, 110, 181, 0.35);
}

.kb-chatbot-panel {
    display: none;
    width: 300px;
    max-width: calc(100vw - 30px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #e9eef3;
}

.kb-chatbot.open .kb-chatbot-panel {
    display: block;
}

.kb-chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kb-chatbot-close {
    border: none;
    background: transparent;
    font-size: 1.35rem;
    color: #026eb5;
    cursor: pointer;
    line-height: 1;
}

.kb-chatbot-panel p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4b5563;
}

.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: #e9f5ff;
    border-color: #02b4e1;
}

@media (max-width: 768px) {
    .floating-social-bar {
        right: max(12px, env(safe-area-inset-right));
        left: auto;
        bottom: max(12px, env(safe-area-inset-bottom));
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .kb-chatbot {
        right: max(12px, env(safe-area-inset-right));
        left: auto;
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 176px);
        z-index: 1260;
    }

    .kb-chatbot-toggle {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .kb-chatbot-panel {
        width: min(320px, calc(100vw - 24px));
        max-width: min(320px, calc(100vw - 24px));
        margin-bottom: 8px;
        padding: 12px;
    }

    .kb-chatbot-panel p {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .kb-faq-btn {
        font-size: 0.82rem;
        padding: 8px 9px;
    }
}

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

    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
    }

    .kb-chatbot {
        right: max(10px, env(safe-area-inset-right));
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 158px);
    }

    .kb-chatbot-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.05rem;
    }

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

    .kb-chatbot-header strong {
        font-size: 0.9rem;
    }
}

/* === 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 hover effect & speed optimization */
.coverflow-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; /* Transición rápida y fluida */
}

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

/* Responsive coverflow */
@media (max-width: 1024px) {
    .coverflow-container {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 50px 0;
    }
    
    .coverflow-container {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .coverflow-container {
        min-height: 260px;
    }
}

/* === 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;
}

