/* ========================================
   ENDIS - Unique Component Design System
   Colors: Ginda (Burgundy) + Black + White
   Font: Montserrat
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Ginda (Burgundy) Accent */
    --ginda: #8B1538;
    --ginda-hover: #A91D45;
    --ginda-dark: #6B102A;
    --ginda-light: #FDF2F4;
    --ginda-muted: rgba(139, 21, 56, 0.08);

    /* Neutrals */
    --black: #0A0A0A;
    --gray-900: #1A1A1A;
    --gray-800: #2D2D2D;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #6B6B6B;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --section-padding: 6rem 0;
    --container-max: 1200px;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-full: 50px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
    background: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Top Bar - Slim Contact Strip
======================================== */
.top-bar {
    background: var(--black);
    padding: 0.6rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar-item:hover {
    color: var(--white);
}

.top-bar-item svg {
    width: 14px;
    height: 14px;
    color: var(--ginda);
}

.top-bar-divider {
    width: 1px;
    height: 12px;
    background: var(--gray-700);
}

/* ========================================
   Header - Clean Minimal
======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    transition: box-shadow 0.3s, top 0.3s;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

nav a:hover {
    color: var(--black);
    background: var(--gray-100);
}

.btn-header {
    background: var(--ginda) !important;
    color: var(--white) !important;
    padding: 0.7rem 1.4rem !important;
    border-radius: var(--radius-full) !important;
    margin-left: 0.75rem;
}

.btn-header:hover {
    background: var(--ginda-hover) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s;
}

/* ========================================
   Buttons - Pill Style with Glow
======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.25rem;
    background: var(--ginda);
    color: var(--white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.35);
}

.btn-primary:hover {
    background: var(--ginda-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 21, 56, 0.45);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-primary.btn-light {
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-md);
}

.btn-primary.btn-light:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* ========================================
   Hero - Centered Dramatic
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black);
    margin-top: 80px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.75) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.75) 100%
    );
    z-index: 1;
}

.hero-container {
    max-width: 900px;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, #C41E4A 0%, #8B1538 50%, #6B102A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .text-gradient {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--white);
    background-clip: unset;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active,
.indicator:hover {
    background: var(--ginda);
    border-color: var(--ginda);
    transform: scale(1.3);
}

/* ========================================
   Statistics - Floating Cards Row
======================================== */
.statistics {
    background: transparent;
    padding: 0;
    position: relative;
    margin-top: -80px;
    z-index: 10;
}

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

.stat-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ginda);
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--ginda);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ========================================
   Section Common
======================================== */
section {
    padding: var(--section-padding);
}

.section-intro {
    max-width: 650px;
    margin-bottom: 3.5rem;
}

.section-intro.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-intro.light h2,
.section-intro.light p {
    color: var(--white);
}

.section-intro.light p {
    color: var(--gray-300);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ginda);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--ginda);
}

.section-label.light {
    color: var(--ginda);
}

.section-label.light::before {
    background: var(--ginda);
}

.section-intro h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-intro p {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ========================================
   Clients - Icon Strip (Horizontal Row)
======================================== */
.clientes {
    background: var(--white);
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.clientes-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cliente-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cliente-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--ginda);
    transition: width 0.3s ease;
}

.cliente-card:hover::after {
    width: 50px;
}

.cliente-card:hover .cliente-icon {
    transform: translateY(-8px);
    background: var(--ginda);
}

.cliente-card:hover .cliente-icon svg {
    color: var(--white);
}

.cliente-icon {
    width: 72px;
    height: 72px;
    background: var(--ginda-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cliente-icon svg {
    width: 30px;
    height: 30px;
    color: var(--ginda);
    transition: color 0.3s ease;
}

.cliente-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.cliente-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ========================================
   Mission/Vision/Values - Large Numbers
======================================== */
.mvv {
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.mvv-texture {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--ginda-muted) 100%);
    pointer-events: none;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.mvv-card {
    position: relative;
    padding-left: 5rem;
}

.mvv-card::before {
    content: attr(data-number);
    position: absolute;
    left: 0;
    top: -10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--ginda);
    opacity: 0.15;
    line-height: 1;
}

.mvv-icon {
    display: none;
}

.mvv-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--black);
}

.mvv-card p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ========================================
   Services - Numbered Feature List
======================================== */
.servicios {
    background: var(--white);
}

.servicios-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.servicios-header .section-intro {
    text-align: left;
    max-width: none;
}

.servicios-header .section-intro p {
    max-width: 500px;
}

.servicios-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.servicios-img::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--ginda);
    border-radius: var(--radius-lg);
    transform: translate(12px, 12px);
    z-index: 1;
}

.servicios-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.tabs-container {
    display: none;
}

.tabs-nav {
    display: none;
}

.tabs-content {
    display: block;
}

.tab-panel {
    display: block !important;
    margin-bottom: 2rem;
}

.tab-panel:last-child {
    margin-bottom: 0;
}

.tab-panel-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--ginda);
    transition: all 0.3s ease;
}

.tab-panel-content:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.tab-panel-content::before {
    content: attr(data-number);
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--ginda);
    min-width: 80px;
}

.tab-text {
    padding: 0;
}

.tab-text h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.tab-text > p {
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tab-features {
    display: none;
}

.tab-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Product Lines - Overlap Cards
======================================== */
.lineas {
    background: var(--gray-50);
    padding-top: 5rem;
}

.lineas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.linea-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    overflow: visible;
    transition: all 0.4s ease;
}

.linea-card:hover {
    transform: translateY(-10px);
}

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

.linea-card-img {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.linea-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.linea-card-content {
    padding: 2rem;
}

.linea-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.linea-card p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========================================
   Product Gallery - Masonry Style (Hidden)
======================================== */
.galeria {
    display: none;
    background: var(--white);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    background: transparent;
    border: 2px solid var(--gray-200);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--ginda);
    color: var(--ginda);
}

.filter-btn.active {
    background: var(--ginda);
    border-color: var(--ginda);
    color: var(--white);
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-item:nth-child(3) {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item:nth-child(6) {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item-overlay h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gallery-item-overlay p {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.gallery-item.hidden {
    display: none;
}

/* ========================================
   CTA Banner - Split Design
======================================== */
.cta-banner {
    background: var(--black);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.cta-banner-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    min-height: 200px;
}

.cta-banner-text {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-banner-text h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.cta-banner-text p {
    color: var(--gray-400);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.cta-banner-icon {
    display: none;
}

.cta-banner .btn-primary {
    width: fit-content;
}

.cta-banner-accent {
    background: var(--ginda);
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cta-banner-accent::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 0;
    bottom: 0;
    width: 100px;
    background: var(--ginda);
    transform: skewX(-10deg);
}

.cta-banner-accent svg {
    width: 64px;
    height: 64px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

/* ========================================
   Sectors - Circular Cards
======================================== */
.sectores {
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--black) 100%);
    position: relative;
}

.sectores-texture {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(139, 21, 56, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.sectores-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.sector-card {
    text-align: center;
    max-width: 200px;
    transition: all 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-10px);
}

.sector-card:hover .sector-img {
    border-color: var(--ginda);
}

.sector-card:hover .sector-img img {
    transform: scale(1.1);
}

.sector-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--gray-700);
    transition: border-color 0.3s ease;
}

.sector-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sector-content {
    padding: 0;
}

.sector-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sector-content p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.6;
    display: none;
}

/* ========================================
   Company/About Section
======================================== */
.empresa {
    background: var(--white);
}

.empresa-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.empresa-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.empresa-text h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.empresa-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.empresa-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.empresa-stat {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--ginda);
    border-radius: var(--radius);
}

.empresa-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.empresa-stat span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.propuesta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.propuesta-card {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid transparent;
}

.propuesta-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-top-color: var(--ginda);
}

.propuesta-card:hover .propuesta-icon {
    background: var(--ginda);
}

.propuesta-card:hover .propuesta-icon svg {
    color: var(--white);
}

.propuesta-icon {
    width: 64px;
    height: 64px;
    background: var(--ginda-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 auto 1.25rem;
}

.propuesta-icon svg {
    width: 28px;
    height: 28px;
    color: var(--ginda);
    transition: color 0.3s ease;
}

.propuesta-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.propuesta-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   Testimonials - Featured Quote
======================================== */
.testimonios {
    background: var(--gray-50);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

.testimonio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.testimonio-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonio-card.featured {
    background: var(--ginda);
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonio-card.featured:hover {
    box-shadow: 0 25px 50px rgba(139, 21, 56, 0.3);
}

.testimonio-card.featured .testimonio-quote svg {
    color: rgba(255, 255, 255, 0.3);
    width: 48px;
    height: 48px;
}

.testimonio-card.featured .testimonio-text {
    color: var(--white);
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 500;
}

.testimonio-card.featured .author-avatar {
    background: var(--white);
    color: var(--ginda);
}

.testimonio-card.featured .author-info strong {
    color: var(--white);
}

.testimonio-card.featured .author-info span {
    color: rgba(255, 255, 255, 0.7);
}

.testimonio-quote {
    margin-bottom: 1.5rem;
}

.testimonio-quote svg {
    width: 36px;
    height: 36px;
    color: var(--ginda-light);
}

.testimonio-text {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 52px;
    height: 52px;
    background: var(--ginda-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ginda);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

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

.author-info strong {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    font-size: 1rem;
    font-weight: 600;
}

.author-info span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ========================================
   Contact - Modern Cards
======================================== */
.contacto {
    background: var(--white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.contacto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--ginda-light);
    transition: height 0.3s ease;
    z-index: 0;
}

.contacto-card:hover::before {
    height: 100%;
}

.contacto-card:hover {
    border-color: var(--ginda);
}

.contacto-card > * {
    position: relative;
    z-index: 1;
}

.contacto-card:hover .contacto-icon {
    background: var(--ginda);
    transform: scale(1.1);
}

.contacto-card:hover .contacto-icon svg {
    color: var(--white);
}

.contacto-icon {
    width: 70px;
    height: 70px;
    background: var(--ginda-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.contacto-icon svg {
    width: 30px;
    height: 30px;
    color: var(--ginda);
    transition: color 0.3s ease;
}

.contacto-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ginda);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.contacto-value {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

a.contacto-value:hover {
    color: var(--ginda);
}

address.contacto-value {
    font-style: normal;
    color: var(--gray-700);
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contacto-value span {
    display: block;
    color: var(--gray-700);
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
}

.contacto-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
}

/* ========================================
   Footer - Modern Dark
======================================== */
footer {
    background: var(--black);
    color: var(--white);
    padding: 5rem 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--gray-800);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 46px;
    height: 46px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--ginda);
    transform: translateY(-4px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.footer-social a:hover svg {
    color: var(--white);
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.9rem;
}

.footer-col ul li a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--ginda);
    transform: translateX(4px);
}

.footer-badges {
    display: flex;
    justify-content: space-between;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--gray-800);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.badge-item svg {
    width: 24px;
    height: 24px;
    color: var(--ginda);
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
}

.animate.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .clientes-grid {
        gap: 1rem;
    }

    .cliente-card {
        padding: 1rem;
    }

    .sectores-grid {
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item:nth-child(3) {
        grid-row: auto;
    }

    .gallery-item:nth-child(6) {
        grid-column: auto;
        aspect-ratio: 1;
    }

    .empresa-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .empresa-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .propuesta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .testimonio-card.featured {
        grid-row: auto;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mvv-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mvv-card {
        padding-left: 4rem;
    }

    .mvv-card::before {
        font-size: 4rem;
    }

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

    .servicios-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .servicios-header .section-intro {
        text-align: center;
    }

    .servicios-header .section-intro p {
        max-width: none;
    }

    .servicios-img {
        max-width: 500px;
        margin: 0 auto;
    }

    .servicios-img::before {
        display: none;
    }

    .tab-panel-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tab-panel-content::before {
        font-size: 2rem;
        min-width: auto;
    }

    .tab-image {
        display: none;
    }

    .cta-banner-content {
        grid-template-columns: 1fr;
    }

    .cta-banner-accent {
        display: none;
    }

    .cta-banner-text {
        text-align: center;
        padding: 3rem 2rem;
    }

    .cta-banner .btn-primary {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    header {
        top: 0;
    }

    .hero {
        margin-top: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 0 1.5rem;
        height: 70px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 1rem;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .btn-header {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    section {
        padding: 4rem 0;
    }

    .section-intro h2 {
        font-size: 2rem;
    }

    .clientes-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .cliente-card::after {
        display: none;
    }

    .sectores-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .sector-img {
        width: 120px;
        height: 120px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-badges {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .statistics {
        margin-top: -50px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

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

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

    .empresa-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .empresa-stat-number {
        font-size: 2rem;
    }

    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cliente-icon {
        width: 56px;
        height: 56px;
    }

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

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

    .sector-img {
        width: 100px;
        height: 100px;
    }

    .sector-content h3 {
        font-size: 0.9rem;
    }
}
