@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Corporate Colors - Updated based on Andromeda Logo */
    --primary-color: #26C6DA;
    /* Cyan/Turquoise from logo top */
    --secondary-color: #7B241C;
    /* Maroon/Brown from logo bottom */
    --accent-color: #FF7043;
    /* Complementary Orange */

    --text-dark: #1E293B;
    /* Dark Slate for modern Inter typography */
    --text-muted: #64748B;
    --text-light: #ffffff;
    --bg-light: #F8FAFC;
    --bg-white: #ffffff;
    --nav-bg: #ffffff;
    --nav-hover: #E0F7FA;
    --border-color: #E2E8F0;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Fonts - Adopted from Stitch design */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-dark: #F1F5F9;
    --text-muted: #94A3B8;
    --text-light: #ecf0f1;
    --bg-light: #0B1120;
    --bg-white: #151F32;
    --nav-bg: #0F172A;
    --nav-hover: #1E293B;
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-color: #4DD0E1;
    /* Lighter Cyan for dark mode */
    --secondary-color: #E57373;
    /* Lighter Red/Brown */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    letter-spacing: -0.025em;
    font-weight: 700;
}

/* Header & Nav */
header {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 var(--spacing-lg);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background-color: var(--nav-hover);
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: var(--spacing-sm) 0;
    border-top: 3px solid var(--primary-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.2s;
}

.dropdown-item a:hover {
    background-color: var(--nav-hover);
    color: var(--primary-color);
    padding-left: 1.5rem;
    /* Slide effect */
}

/* Icons in dropdowns */
.dropdown-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/LOGO_ANDROMEDA-1.png');
    /* Updated to new logo */
    /* Fallback to logo if no hero img */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed, for now simple hide */
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.folder-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Project View */
.project-view {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.back-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.back-btn:hover {
    text-decoration: underline;
}

/* Carousel */
.carousel-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 2rem 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-track-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    /* Arrange slides horizontally */
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    /* Default stack */
    opacity: 0;
    /* Hide by default */
    transition: opacity 0.5s ease;
}

.carousel-slide.current-slide {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-instruction {
    text-align: center;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Lightbox */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hero Carousel Specifics */
.hero-carousel {
    height: 80vh;
    width: 100%;
    position: relative;
    background-color: #000;
}

.hero-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 1rem 3rem 1rem;
    z-index: 5;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-overlay p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Quick Links Section */
.quick-links-section {
    padding: 3rem 1rem;
    background-color: var(--bg-white);
    text-align: center;
}

.quick-links-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-link-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 3px solid transparent;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.quick-link-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-link-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Experiencia Page - Subfolder & Explorer Styles --- */

.exp-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

.exp-hero {
    margin-bottom: 2rem;
    text-align: center;
}

.exp-hero h1 {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.exp-hero p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto;
}

body.dark-mode .exp-hero p {
    color: #94a3b8;
}

/* Breadcrumbs */
.exp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);
}

body.dark-mode .exp-breadcrumbs {
    border-color: rgba(255,255,255,0.08);
}

.exp-crumb-item {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.exp-crumb-item:hover {
    color: var(--primary-color);
}

.exp-crumb-item.active {
    color: var(--secondary-color);
    font-weight: 600;
    cursor: default;
}

body.dark-mode .exp-crumb-item.active {
    color: var(--primary-color);
}

.exp-crumb-separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

/* Toolbar & Controls */
.exp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .exp-toolbar {
    border-color: rgba(255,255,255,0.08);
}

.exp-search-box {
    position: relative;
    flex: 1 1 280px;
    max-width: 450px;
}

.exp-search-box i.fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.exp-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-light);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.exp-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.2);
}

.exp-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    display: none;
}

.exp-view-switch {
    display: flex;
    background: var(--bg-light);
    padding: 0.3rem;
    border-radius: 8px;
    gap: 0.25rem;
}

.exp-view-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.exp-view-btn.active {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.dark-mode .exp-view-btn.active {
    background: #2a2a2a;
    color: var(--primary-color);
}

/* Filter Chips */
.exp-filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.exp-chip {
    border: 1px solid #cbd5e1;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.exp-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.exp-chip.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.exp-chip-count {
    background: rgba(0,0,0,0.08);
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
}

.exp-chip.active .exp-chip-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Categories Grid (Discipline Folders) */
.exp-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.exp-cat-card {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1.75rem 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.exp-cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.exp-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.exp-cat-card:hover::before {
    width: 8px;
}

.exp-cat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exp-cat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--nav-hover);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform 0.3s;
}

.exp-cat-card:hover .exp-cat-icon-wrap {
    transform: scale(1.1);
    background: var(--primary-color);
    color: #fff;
}

.exp-cat-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--bg-light);
    color: #64748b;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.exp-cat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.exp-cat-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 1.2rem;
    min-height: 2.6em;
}

body.dark-mode .exp-cat-desc {
    color: #94a3b8;
}

.exp-cat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

body.dark-mode .exp-cat-footer {
    border-top-color: rgba(255,255,255,0.06);
}

.exp-cat-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
}

body.dark-mode .exp-cat-count {
    color: #94a3b8;
}

/* Subfolders Grid */
.exp-subfolders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.exp-subfolder-card {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.exp-subfolder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.exp-subfolder-header {
    padding: 1.25rem 1.25rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exp-code-badge {
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.exp-spec-tag {
    font-size: 0.75rem;
    background: var(--nav-hover);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.exp-subfolder-body {
    padding: 0.5rem 1.25rem 1rem;
    flex: 1;
}

.exp-folder-graphic {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.exp-folder-graphic i {
    font-size: 2.2rem;
    color: #f59e0b;
    transition: transform 0.2s;
}

.exp-subfolder-card:hover .exp-folder-graphic i {
    transform: scale(1.12);
    color: #eab308;
}

.exp-client-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.exp-subfolder-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
    margin-top: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .exp-subfolder-desc {
    color: #94a3b8;
}

/* Card Cover Preview */
.exp-subfolder-cover {
    height: 130px;
    width: 100%;
    position: relative;
    background: #0f172a;
    overflow: hidden;
}

.exp-subfolder-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.exp-subfolder-card:hover .exp-subfolder-cover img {
    transform: scale(1.08);
}

.exp-subfolder-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 0.6rem 0.9rem;
}

.exp-photo-badge {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.exp-subfolder-footer {
    padding: 0.85rem 1.25rem;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

body.dark-mode .exp-subfolder-footer {
    background: #181818;
    border-top-color: rgba(255,255,255,0.06);
}

.exp-subfolder-card:hover .exp-subfolder-footer {
    color: var(--secondary-color);
}

body.dark-mode .exp-subfolder-card:hover .exp-subfolder-footer {
    color: #fff;
}

/* Detail View Customizations */
.exp-detail-header {
    background: var(--bg-white);
    padding: 1.75rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .exp-detail-header {
    border-color: rgba(255,255,255,0.08);
}

.exp-detail-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.exp-detail-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.exp-detail-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.exp-detail-desc {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 900px;
    line-height: 1.5;
}

body.dark-mode .exp-detail-desc {
    color: #94a3b8;
}

/* Gallery Grid Under Carousel */
.exp-gallery-section {
    margin-top: 2.5rem;
}

.exp-gallery-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.exp-gallery-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.exp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exp-gallery-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.exp-gallery-item:hover img {
    transform: scale(1.08);
}

.exp-gallery-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.4);
}

.exp-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: opacity 0.2s;
}

.exp-gallery-item:hover .exp-gallery-overlay {
    opacity: 1;
}

/* Lightbox Navigation */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 2.2rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 2010;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-btn.prev {
    left: 20px;
}

.lightbox-btn.next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    text-align: center;
    max-width: 80%;
    backdrop-filter: blur(5px);
}

/* Empty state */
.exp-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    color: #64748b;
    grid-column: 1 / -1;
}

.exp-empty-state i {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* ==========================================================================
   CONTACT SECTION (Franja de Contacto - Stitch Design)
   ========================================================================== */
.contact-section {
    padding: 5.5rem 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    position: relative;
}

body.dark-mode .contact-section {
    background-color: var(--bg-light);
}

.contact-container {
    max-width: 1240px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Left Column: Contact Info */
.contact-info-col {
    display: flex;
    flex-direction: column;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}

.eyebrow-dash {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.contact-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.contact-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2.25rem;
    max-width: 520px;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

body.dark-mode .contact-info-card {
    background: var(--bg-white);
    border-color: var(--border-color);
}

.contact-info-card:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon-maroon {
    background-color: var(--secondary-color);
}

.icon-cyan {
    background-color: var(--primary-color);
}

.icon-blue {
    background-color: #4F46E5;
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.contact-info-value {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.contact-info-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-value a:hover {
    color: var(--primary-color);
}

.contact-info-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.contact-info-sub a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-sub a:hover {
    color: var(--primary-color);
}

.branch-info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: rgba(38, 198, 218, 0.08);
    border: 1px solid rgba(38, 198, 218, 0.25);
    border-radius: 10px;
}

body.dark-mode .branch-info-banner {
    background: rgba(38, 198, 218, 0.05);
    border-color: rgba(38, 198, 218, 0.2);
}

.branch-info-text {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.5;
}

body.dark-mode .branch-info-text {
    color: #e2e8f0;
}

.branch-info-text strong {
    color: var(--secondary-color);
    font-weight: 700;
}

body.dark-mode .branch-info-text strong {
    color: var(--primary-color);
}

.branch-icon-tag {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Right Column: Quote Form Card */
.quote-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.75rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 8px 12px -6px rgba(0, 0, 0, 0.03);
}

body.dark-mode .quote-form-card {
    background: var(--bg-white);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quote-form-header {
    margin-bottom: 2rem;
}

.form-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-quote-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(38, 198, 218, 0.12);
    color: #00838F;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.dark-mode .badge-quote-accent {
    color: #4DD0E1;
    background: rgba(77, 208, 225, 0.15);
}

.badge-quote-meta {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.quote-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.quote-form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.quote-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .quote-fields-grid {
        grid-template-columns: 1fr;
    }
}

.quote-fields-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 0.45rem;
}

body.dark-mode .form-group label {
    color: #94a3b8;
}

.form-group label .req {
    color: var(--secondary-color);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

body.dark-mode .form-control {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.2);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.btn-quote-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.2rem;
    background: #26C6DA;
    color: #0f172a;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(38, 198, 218, 0.35);
}

.btn-quote-submit:hover {
    background: #00acc1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 198, 218, 0.45);
}

.btn-quote-submit i {
    transition: transform 0.2s ease;
}

.btn-quote-submit:hover i {
    transform: translateX(4px);
}

.quote-security-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.quote-security-note i {
    color: #10b981;
}

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.25rem;
    font-size: 0.92rem;
    display: none;
}

.form-alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

body.dark-mode .form-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.form-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

body.dark-mode .form-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ==========================================================================
   SITE FOOTER (Franja de Pie de Página - Stitch Design)
   ========================================================================== */
.site-footer {
    background-color: #f8fafc;
    color: #475569;
    border-top: 1px solid var(--border-color);
    padding: 5rem 1.5rem 2rem;
    font-size: 0.95rem;
}

body.dark-mode .site-footer {
    background-color: #070d19;
    color: #94a3b8;
    border-top-color: rgba(255, 255, 255, 0.06);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer Col 1: Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-about-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.social-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

body.dark-mode .social-circle-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.social-circle-btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(123, 36, 28, 0.25);
}

/* Footer Col 2 & 3: Navigation */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-nav-list li a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.footer-nav-list li a i {
    font-size: 0.72rem;
    color: var(--primary-color);
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.footer-nav-list li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-nav-list li a:hover i {
    transform: translateX(2px);
}

/* Footer Col 4: Newsletter */
.footer-newsletter-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.footer-subscribe-box {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.dark-mode .footer-subscribe-box {
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-subscribe-box input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.92rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

body.dark-mode .footer-subscribe-box input {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.footer-subscribe-box button {
    padding: 0 1.25rem;
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.footer-subscribe-box button:hover {
    background-color: #922b21;
    color: #ffffff;
}

/* Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

body.dark-mode .footer-bottom-bar {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-branches {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
}

.footer-bottom-branches a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-branches a:hover {
    text-decoration: underline;
}

.footer-bottom-branches .sep {
    color: #cbd5e1;
}

body.dark-mode .footer-bottom-branches .sep {
    color: #334155;
}

@media (max-width: 640px) {
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}