/* -------------------------------------------------------------
   DESIGN SYSTEM & VARIABLES - SOLAR CENTAURY SPA
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-green: hsl(145, 63%, 26%);       /* Deep Forest Green */
    --primary-green-light: hsl(145, 63%, 35%);
    --primary-green-dark: hsl(145, 63%, 16%);
    --accent-yellow: hsl(43, 96%, 52%);         /* Warm Sun Yellow */
    --accent-yellow-light: hsl(43, 96%, 60%);
    --accent-yellow-dark: hsl(43, 96%, 42%);
    
    --bg-light: hsl(0, 0%, 100%);
    --bg-alt: hsl(145, 15%, 97%);               /* Soft grayish-green background */
    --bg-dark: hsl(210, 30%, 8%);               /* Off-black slate */
    
    --text-dark: hsl(210, 24%, 15%);            /* Charcoal text */
    --text-muted: hsl(210, 14%, 44%);           /* Muted text description */
    --text-white: hsl(0, 0%, 100%);
    
    --border-color: hsl(145, 15%, 90%);
    
    /* Transparent / Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(27, 43, 38, 0.85);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-border-dark: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Shadows */
    --shadow-sm: 0 4px 12px rgba(27, 77, 62, 0.04);
    --shadow-md: 0 12px 36px rgba(27, 77, 62, 0.06);
    --shadow-lg: 0 24px 64px rgba(27, 77, 62, 0.1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* -------------------------------------------------------------
   RESET & GLOBAL BASE STYLES
   ------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-green-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

/* Section Headings */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* -------------------------------------------------------------
   BUTTONS & MICRO-INTERACTIONS
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--primary-green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.2);
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: var(--primary-green-dark);
}

.btn-accent:hover {
    background-color: var(--accent-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

/* Shaking Button Animation */
@keyframes shake {
    0% { transform: scale(1); }
    15% { transform: scale(1.05) rotate(-2deg); }
    30% { transform: scale(1.05) rotate(2deg); }
    45% { transform: scale(1.05) rotate(-2deg); }
    60% { transform: scale(1.05) rotate(2deg); }
    75% { transform: scale(1.05) rotate(-1deg); }
    90% { transform: scale(1.05) rotate(1deg); }
    100% { transform: scale(1); }
}

.shake-animation {
    animation: shake 0.7s cubic-bezier(.36,.07,.19,.97) both;
}

/* -------------------------------------------------------------
   NAVIGATION HEADER & CONTRAST FIXES
   ------------------------------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-normal);
}

.header-scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    transition: var(--transition-fast);
}

#main-header.header-scrolled .navbar {
    height: 70px;
}

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

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

#main-header.header-scrolled .logo-img {
    height: 42px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-top {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    letter-spacing: 0.5px;
    line-height: 1.1;
    transition: var(--transition-fast);
}

.logo-main {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.logo-main span {
    color: var(--accent-yellow-dark);
}

/* Header transparent styling override (iluminado para video oscuro) */
#main-header:not(.header-scrolled) .logo-top {
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

#main-header:not(.header-scrolled) .logo-main {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

#main-header:not(.header-scrolled) .logo-main span {
    color: var(--accent-yellow);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 6px 0;
    transition: var(--transition-fast);
}

/* Specificity fix for transparent header text readability */
#main-header:not(.header-scrolled) .nav-links a {
    color: var(--text-white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-green-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

#main-header:not(.header-scrolled) .mobile-menu-btn span {
    background-color: var(--text-white);
}

/* -------------------------------------------------------------
   HERO SECTION (BACKGROUND VIDEO & OVERLAY)
   ------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 43, 38, 0.85) 0%, rgba(10, 16, 14, 0.92) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: var(--text-white);
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(243, 156, 18, 0.15);
    border: 1px solid var(--accent-yellow);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 24px;
    font-weight: 800;
    min-height: 130px; /* Prevent text shifting height */
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 650px;
}

.typing-cursor {
    color: var(--accent-yellow);
    font-weight: 400;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

#hero-cta-btn {
    animation: shake-btn 4s infinite ease-in-out;
}

#hero-cta-btn:hover {
    animation: none;
    transform: translateY(-2px) scale(1.05);
}

@keyframes shake-btn {
    0%, 85%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    88% { transform: translateY(-2px) scale(1.05) rotate(-2.5deg); }
    91% { transform: translateY(-2px) scale(1.05) rotate(2.5deg); }
    94% { transform: translateY(-2px) scale(1.05) rotate(-2.5deg); }
    97% { transform: translateY(-2px) scale(1.05) rotate(2.5deg); }
}

/* -------------------------------------------------------------
   ¿QUIÉNES SOMOS? & STATS CARDS
   ------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-tag {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.about-title {
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.highlight-item {
    display: flex;
    gap: 16px;
}

.highlight-icon {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    line-height: 1;
}

.highlight-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.highlight-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Image with Badge */
.about-image-container {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary-green);
    color: var(--text-white);
    padding: 24px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    text-align: center;
    z-index: 10;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-yellow);
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* -------------------------------------------------------------
   STATS SECTION (DYNAMICAL NUMBERS)
   ------------------------------------------------------------- */
.stats-section {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(27, 77, 62, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

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

.stat-card {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.stat-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

/* -------------------------------------------------------------
   NUESTROS SERVICIOS (MAIN FEATURE CARDS)
   ------------------------------------------------------------- */
.services-multipage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.service-grid-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.service-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green-light);
}

.service-card-image-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.service-grid-card-content {
    padding: 30px;
}

.service-grid-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-grid-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    height: 72px; /* Fix height for alignment */
    overflow: hidden;
}

.service-grid-card-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-grid-card-link::after {
    content: '➔';
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.service-grid-card:hover .service-grid-card-link::after {
    transform: translateX(4px);
}

/* -------------------------------------------------------------
   UNFOLDED SERVICES WITH ROTATING GALLERIES (CAMBIOS 1, 2, 3)
   ------------------------------------------------------------- */
.services-unfolded-wrapper {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-unfolded-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 50px;
    scroll-margin-top: 110px;
}

.service-unfolded-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    position: relative;
}

.service-unfolded-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--accent-yellow);
}

.service-unfolded-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.service-unfolded-text p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.installations-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.install-col h4 {
    font-size: 1.15rem;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.bullet-list {
    padding-left: 20px;
}

.bullet-list li {
    list-style-type: square;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bullet-list-compact {
    padding-left: 15px;
}

.bullet-list-compact li {
    list-style-type: square;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bullet-list-compact li strong {
    color: var(--text-dark);
}

/* SEC Quality Seals (Sello de Calidad) styling */
.sec-seals-wrapper {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
}

.seals-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.sec-seals-container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.sec-seal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-alt);
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.sec-seal-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.sec-seal-item span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-green-dark);
    line-height: 1.2;
}

/* Automatic Rotating system slider styling */
.service-unfolded-media {
    position: sticky;
    top: 110px;
}

.system-slider {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.system-slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.system-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.system-slide.active {
    opacity: 1;
    z-index: 2;
}

.system-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.system-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    width: 20px;
    border-radius: 10px;
    background-color: var(--accent-yellow);
}

/* Solar open systems sub-elements */
.intro-p {
    font-size: 1.1rem !important;
    line-height: 1.7;
    margin-bottom: 30px;
}

.net-billing-box {
    background-color: hsl(43, 96%, 96%);
    border: 1px solid hsl(43, 96%, 83%);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.net-billing-icon {
    font-size: 2.25rem;
    line-height: 1;
}

.net-billing-box h4 {
    color: hsl(43, 96%, 15%);
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.net-billing-box p {
    font-size: 0.95rem;
    color: hsl(43, 96%, 12%);
    line-height: 1.5;
}

.solar-systems-open-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.solar-system-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.solar-system-card .system-slider {
    height: 220px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
}

.solar-system-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.solar-system-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-green-dark);
}

.solar-system-info p {
    font-size: 0.9rem !important;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
    flex-grow: 1;
}

/* -------------------------------------------------------------
   GALERÍA DE TRABAJOS REALIZADOS (LIGHTBOX ZOOM)
   ------------------------------------------------------------- */
.gallery-container {
    position: relative;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-slide {
    position: relative;
    height: 250px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

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

.gallery-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(27, 43, 38, 0.9) 0%, rgba(27, 43, 38, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 2;
}

.gallery-slide:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-slide:hover .gallery-slide-overlay {
    opacity: 1;
}

.gallery-slide-title {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.gallery-slide-tag {
    color: var(--accent-yellow);
    font-size: 0.8rem;
    font-weight: 500;
}

.gallery-zoom-icon {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* Lightbox Modal CSS */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 16, 14, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--text-white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.lightbox-close:hover {
    color: var(--accent-yellow);
    transform: rotate(90deg);
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    text-align: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255,255,255,0.15);
    transition: opacity 0.15s ease-in-out;
}

.lightbox-caption {
    margin-top: 16px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 2rem;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-fast);
    user-select: none;
}

.lightbox-nav:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-green-dark);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* -------------------------------------------------------------
   TRUSTINDEX WIDGET TESTIMONIALS STYLE (CAMBIO 4)
   ------------------------------------------------------------- */
.testimonials-section {
    background-color: var(--bg-alt);
}

.ti-widget-container {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: stretch;
    position: relative;
    margin-top: 20px;
    padding-bottom: 50px; /* Space for the bottom footer badge */
}

/* Left Sidebar rating header */
.ti-widget-left {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid var(--border-color);
}

.ti-widget-rating-word {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #111;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.ti-widget-stars {
    font-size: 1.75rem;
    color: #f39c12; /* Gold stars */
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ti-widget-reviews-info {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 12px;
}

.ti-google-logo-svg {
    height: 32px;
    width: auto;
}

/* Right reviews slider */
.ti-widget-right {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.ti-slider-viewport {
    width: 100%;
    overflow: hidden;
}

.ti-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: max-content;
}

/* Testimonial Card in Trustindex Widget */
.ti-card {
    width: 280px; /* Fixed width of review cards */
    background-color: #f5f6f7;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.ti-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-bottom: 10px;
    padding-right: 25px; /* Leave space for google icon */
}

.ti-card-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
    border: 1px solid rgba(0,0,0,0.05);
}

.ti-card-user-info {
    display: flex;
    flex-direction: column;
}

.ti-card-username {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #222;
    line-height: 1.2;
}

.ti-card-time {
    font-size: 0.75rem;
    color: #888;
}

.ti-google-icon-card {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 2px;
    right: 0;
}

.ti-card-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ti-card-stars {
    font-size: 0.9rem;
    color: #f39c12;
    letter-spacing: 0.5px;
}

.ti-card-stars .filled {
    color: #f39c12;
}

.ti-card-stars .empty {
    color: #ccc;
}

.ti-card-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
    padding: 1px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
}

.ti-card-check {
    font-size: 0.7rem;
}

.ti-card-text {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
    font-style: normal;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nav Buttons inside Widget */
.ti-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    font-size: 1rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.ti-nav-btn:hover {
    background-color: var(--primary-green);
    color: var(--text-white);
    border-color: var(--primary-green);
}

.ti-nav-prev {
    left: -5px;
}

.ti-nav-next {
    right: -5px;
}

/* Trustindex bottom verified badge */
.ti-verified-badge {
    position: absolute;
    bottom: 12px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #555;
}

.ti-verified-icon {
    height: 15px;
    width: auto;
}

.ti-verified-text strong {
    color: #1b6d3a;
}

.ti-info-icon {
    background-color: #ddd;
    color: #555;
    font-size: 0.65rem;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    cursor: help;
}

/* -------------------------------------------------------------
   ZONAS DE COBERTURA MARQUEE (CONTINUOUS SCROLL)
   ------------------------------------------------------------- */
.clients-section {
    padding: 50px 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.clients-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 24px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.logo-marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.client-logo-wrapper {
    display: inline-block;
    margin: 0 40px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

.client-logo-wrapper:hover {
    color: var(--accent-yellow);
}

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

/* -------------------------------------------------------------
   FAQ SECTION (PREGUNTAS FRECUENTES)
   ------------------------------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 24px 30px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

details[open] .faq-question::after {
    transform: rotate(180deg);
    color: var(--accent-yellow-dark);
}

.faq-answer {
    padding: 0 30px 24px 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

details[open] .faq-answer {
    border-top-color: var(--border-color);
}

/* -------------------------------------------------------------
   SOLAR CALCULATOR & SYSTEM SIZING (CONTRAST IMPROVEMENT - CAMBIO 5)
   ------------------------------------------------------------- */
.cr-cm-wrap {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-top: 40px;
}

.cr-cm-head {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.cr-cm-head h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cr-cm-head p {
    color: var(--text-muted);
}

.cr-cm-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cr-cm-section {
    border: 1px solid #7f8c8d; /* Darker border for higher contrast */
    border-radius: var(--border-radius-md);
    background-color: var(--bg-alt);
    margin-bottom: 10px;
    overflow: hidden;
}

.cr-cm-section summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    cursor: pointer;
    background-color: var(--bg-light);
    list-style: none;
    border-bottom: 1px solid transparent;
}

.cr-cm-section summary::-webkit-details-marker {
    display: none;
}

.cr-cm-section[open] summary {
    border-bottom-color: #7f8c8d;
}

.cr-cm-section summary em {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: #7f8c8d;
    color: var(--text-white);
}

.cr-cm-section[open] summary em {
    background-color: var(--primary-green);
    color: var(--text-white);
}

.cr-cm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
}

.cr-cm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cr-cm-form-group-full {
    grid-column: span 2;
}

.cr-cm-form-group label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-green-dark);
}

/* High contrast inputs (Cambio 5) */
.cr-cm-form-group input,
.cr-cm-form-group select,
.cr-cm-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 2px solid #5a6b6c; /* Thicker and much darker border */
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-light);
    color: #111; /* Pitch black for user input values */
    font-weight: 500;
    transition: var(--transition-fast);
}

.cr-cm-form-group input::placeholder,
.cr-cm-form-group textarea::placeholder {
    color: #555555; /* Highly readable dark gray placeholder text */
}

.cr-cm-form-group input:focus,
.cr-cm-form-group select:focus,
.cr-cm-form-group textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.18);
}

/* Service Type Checkboxes */
.cr-cm-service-select-section {
    padding: 10px 0;
}

.cr-cm-service-select-section h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.service-select-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.cr-cm-services-checkboxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-checkbox-card {
    position: relative;
    border: 2px solid #5a6b6c; /* Increased border contrast */
    border-radius: var(--border-radius-md);
    background-color: var(--bg-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.service-checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #5a6b6c;
    border-radius: 50%;
    position: relative;
    transition: var(--transition-fast);
}

.service-checkbox-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.service-checkbox-card input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-green);
    background-color: var(--primary-green);
}

.service-checkbox-card input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-white);
}

.service-checkbox-card input[type="checkbox"]:checked ~ .service-label-text {
    color: var(--primary-green-dark);
    font-weight: 800;
}

.service-checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-green);
    background-color: rgba(27, 77, 62, 0.05);
    box-shadow: var(--shadow-md);
}

.service-label-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Category summaries helper */
.category-summary-qty {
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #555;
    background: transparent !important;
    padding: 0 !important;
}

.category-summary-qty.has-items {
    color: var(--primary-green) !important;
    font-weight: 800 !important;
}

/* Appliance list layout */
.appliance-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
}

.appliance-card {
    background-color: var(--bg-light);
    border: 2px solid #5a6b6c; /* Increased contrast border */
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appliance-info {
    display: flex;
    flex-direction: column;
}

.appliance-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.appliance-details {
    font-size: 0.8rem;
    color: #444; /* Darker detailed text */
    font-weight: 500;
}

.appliance-control {
    display: flex;
    align-items: center;
    border: 2px solid #5a6b6c;
    border-radius: 4px;
    overflow: hidden;
}

.btn-qty {
    width: 32px;
    height: 32px;
    background-color: var(--bg-alt);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 800;
    transition: var(--transition-fast);
}

.btn-qty:hover {
    background-color: var(--primary-green);
    color: var(--text-white);
}

.input-qty {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 2px solid #5a6b6c;
    border-right: 2px solid #5a6b6c;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    background-color: var(--bg-light);
    color: #111;
}

/* Calculator Results Box */
.cr-cm-result {
    background-color: var(--primary-green-dark);
    color: var(--text-white);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.cr-cm-result-summary {
    display: flex;
    flex-direction: column;
}

.cr-cm-result-summary span {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cr-cm-m3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-yellow);
    line-height: 1.1;
    margin: 8px 0;
    display: block;
}

.cr-cm-result-summary p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Sizing Details Grid */
.calculator-details-output {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.result-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.result-detail-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.result-detail-item strong {
    color: rgba(255,255,255,0.85);
}

.result-detail-item span {
    color: var(--accent-yellow);
    font-weight: 700;
}

.result-detail-item-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    margin-top: 10px;
    line-height: 1.4;
}

.cr-cm-result-btn-wrap {
    grid-column: span 2;
    text-align: center;
}

.cr-cm-btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1rem;
    background-color: var(--accent-yellow);
    color: var(--primary-green-dark);
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transition: var(--transition-fast);
}

.cr-cm-btn:hover {
    background-color: var(--accent-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* -------------------------------------------------------------
   CONTACT & DIRECT INQUIRY FORM
   ------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: start;
}

.glass-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
}

.contact-card-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon-wrapper {
    background-color: rgba(27, 77, 62, 0.08);
    color: var(--primary-green);
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.detail-content h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.detail-content p, .detail-content a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-content a:hover {
    color: var(--primary-green);
}

/* Form Styling - High Contrast (Cambio 5) */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-green-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 2px solid #5a6b6c; /* Increased border contrast */
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-light);
    color: #111;
    font-weight: 500;
    transition: var(--transition-fast);
}

.form-control::placeholder {
    color: #555;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.18);
}

/* Map Embed */
.map-container {
    margin-top: 40px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 48px;
}

.footer-about .logo-top {
    color: var(--text-white) !important;
    text-shadow: none !important;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-col h4 {
    color: var(--text-white);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-links-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-yellow);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: var(--accent-yellow);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------
   FLOATING WHATSAPP BUTTON (BOUNCE & GOLDEN HALO - CAMBIO 8)
   ------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    border-radius: 50%;
    /* Double animation combined: bouncing + golden pulsing halo glow */
    animation: wa-bounce 2.5s infinite, golden-pulse 2s infinite;
}

.whatsapp-icon-wrapper {
    background-color: #2ecc71;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-yellow); /* Golden border halo */
    transition: var(--transition-fast);
}

.whatsapp-img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover .whatsapp-icon-wrapper {
    background-color: #27ae60;
    transform: scale(1.08);
}

/* WhatsApp bounce animation */
@keyframes wa-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* Golden pulse halo animation */
@keyframes golden-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.8);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(243, 156, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

/* -------------------------------------------------------------
   SCROLL REVEAL ANIMATION STATES
   ------------------------------------------------------------- */
.anim-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.anim-fade-in.scrolled {
    opacity: 1;
}

.anim-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-slide-in-left.scrolled {
    opacity: 1;
    transform: translateX(0);
}

.anim-slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-slide-in-right.scrolled {
    opacity: 1;
    transform: translateX(0);
}

.anim-zoom-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-zoom-in.scrolled {
    opacity: 1;
    transform: scale(1);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES - CAMBIO 7)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .service-unfolded-card {
        padding: 35px;
    }
    
    .service-unfolded-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-unfolded-media {
        position: static;
    }
    
    .system-slider {
        height: 320px;
    }
    
    .solar-systems-open-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 30px;
    }
    
    .stat-card:nth-child(3),
    .stat-card:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
        padding-top: 30px;
    }
    
    .services-multipage-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cr-cm-services-checkboxes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ti-widget-container {
        flex-direction: column;
        padding-bottom: 60px;
    }
    
    .ti-widget-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 10px;
        min-width: 100%;
    }
    
    .ti-verified-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: 15px;
        width: max-content;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .navbar {
        height: 75px;
    }
    
    .nav-cta {
        display: none; /* Hide CTA button in menu on mobile */
    }
    
    /* Hamburger Menu Trigger */
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: var(--glass-bg-dark);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        z-index: 1005;
        padding: 50px;
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.25rem;
        color: var(--text-white) !important;
        text-shadow: none !important;
    }
    
    /* Toggle active animation */
    .toggle-active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle-active span:nth-child(2) {
        opacity: 0;
    }
    .toggle-active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        min-height: 100px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-container {
        order: -1; /* Display image on top in mobile */
    }
    
    .about-badge {
        bottom: 10px;
        left: 10px;
        padding: 16px 20px;
    }
    
    .solar-systems-open-grid {
        grid-template-columns: 1fr;
    }
    
    .installations-subgrid {
        grid-template-columns: 1fr;
    }
    
    .sec-seals-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .appliance-list-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .cr-cm-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .cr-cm-form-group-full {
        grid-column: span 1;
    }
    
    .cr-cm-result {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }
    
    .cr-cm-result-btn-wrap {
        grid-column: span 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .lightbox-nav {
        padding: 10px 14px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    /* WhatsApp Mobile position adjustment (Cambio 7) */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-img {
        width: 26px;
        height: 26px;
    }

    /* Mobile layout overflow fixes */
    .container {
        padding: 0 16px;
    }

    .glass-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2.3rem;
    }

    .cr-cm-wrap {
        padding: 24px 16px;
        margin-top: 24px;
    }
}

@media (max-width: 600px) {
    .service-unfolded-card {
        padding: 24px 16px;
    }
    
    .system-slider {
        height: 240px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cr-cm-services-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        min-height: 80px;
    }
    
    .ti-card {
        width: 250px;
    }
    
    .ti-card-text {
        -webkit-line-clamp: 5;
    }
}
