/* ===================================
   CM VENTOR - DISEÑO MODERNO V2
   Basado en diseño rheab con colores CM Ventor
   =================================== */

/* Variables de colores CM Ventor */
:root {
    /* Colores principales CM Ventor */
    --cm-blue: #1e40af;
    --cm-blue-light: #3b82f6;
    --cm-blue-dark: #1e3a8a;
    --cm-yellow: #f59e0b;
    --cm-yellow-light: #fbbf24;
    --cm-yellow-dark: #d97706;
    --cm-gray: #64748b;
    --cm-gray-light: #94a3b8;
    --cm-gray-dark: #475569;
    
    /* Colores de texto */
    --text-dark: #1f2937;
    --text-light: #334155;
    --text-gray: #9ca3af;
    
    /* Fondos */
    --bg-white: #ffffff;
    --bg-light: #f8fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --surface-elevated: #f8fafc;
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.1);
    --card-radius: 0.875rem;
    --card-radius-lg: 1rem;
    --card-border: rgba(15, 23, 42, 0.08);
    --card-border-hover: rgba(30, 64, 175, 0.2);
    --card-bg: #ffffff;
    --card-bg-soft: linear-gradient(135deg, #ffffff 0%, #fafbfd 100%);
    --transition-premium: 240ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Reset básico */
*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: #fdfefe;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--cm-blue-dark);
    letter-spacing: -0.02em;
}

/* Hero title usa color especial (negro con highlight amarillo) */
.hero__title {
    color: #0f172a;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--cm-blue);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--cm-blue-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

@media (min-width: 1400px) {
    .container {
        padding: 0 4rem;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--cm-yellow);
    color: var(--text-dark);
    border-color: #e8a435;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--cm-yellow-dark);
    border-color: #cd8416;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cm-blue);
    border: 1px solid var(--cm-blue);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #eff6ff;
    color: var(--cm-blue-dark);
    border-color: var(--cm-blue-dark);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 640px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform var(--transition-premium), box-shadow var(--transition-premium), border-color var(--transition-premium);
}

@media (min-width: 1024px) {
    .card {
        padding: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .card {
        padding: 1.75rem;
    }
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    border-color: var(--card-border-hover);
}

/* Unified cards for key business sections */
.profile__credential-section,
.services__card,
.producto-card,
.testimonials__project-card {
    border-radius: var(--card-radius-lg);
    border: 1px solid var(--card-border);
    background: var(--card-bg-soft);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform var(--transition-premium), box-shadow var(--transition-premium), border-color var(--transition-premium);
}

.profile__credential-section:hover,
.services__card:hover,
.producto-card:hover,
.testimonials__project-card:hover {
    transform: translateY(-2px);
    border-color: var(--cm-blue);
    box-shadow: 0 14px 32px rgba(30, 64, 175, 0.14);
}

/* ===================================
   HEADER
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: var(--bg-white);
    transition: all 0.3s ease-in-out;
    padding: 0.875rem 0;
    min-height: fit-content;
}

.header--scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.625rem 0;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

@media (min-width: 1400px) {
    .header__content {
        gap: 5rem;
    }
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    z-index: 1030;
    flex-shrink: 0;
    margin-right: auto;
}

.header__logo-icon {
    width: 76px;
    height: 76px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

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

.header__logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cm-blue);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.header__logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.2;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

@media (min-width: 1400px) {
    .header__nav {
        gap: 3.5rem;
        margin: 0 3rem;
    }
}

@media (max-width: 1024px) {
    .header__content {
        gap: 1.5rem;
    }
    
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        flex: none;
        margin: 0;
        gap: 0;
    }
    
    .header__nav--open {
        transform: translateX(0);
    }
    
    .header__logo {
        margin-right: 0;
    }
    
    .header__nav-cta {
        margin-left: 0;
    }
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 1400px) {
    .header__nav-list {
        gap: 2.75rem;
    }
}

@media (max-width: 1024px) {
    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

.header__nav-link {
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.15s ease-in-out;
    font-size: 1rem;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.header__nav-link:hover {
    color: var(--cm-blue);
}

.header__nav-cta {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: auto;
}

@media (max-width: 1024px) {
    .header__nav-link {
        font-size: 1.25rem;
    }
    
    .header__nav-cta {
        margin-top: 1.5rem;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
}

.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1030;
}

@media (max-width: 1024px) {
    .header__mobile-toggle {
        display: flex;
    }
}

.header__mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--cm-blue);
    border-radius: 0.375rem;
    transition: all 0.3s ease-in-out;
}

.header__mobile-toggle--open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.header__mobile-toggle--open span:nth-child(2) {
    opacity: 0;
}

.header__mobile-toggle--open span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-right: 1rem;
    display: block !important;
    z-index: 10;
    flex-shrink: 0;
}

.language-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem !important;
    background: var(--bg-white) !important;
    border: 2px solid var(--cm-blue) !important;
    border-radius: 0.5rem;
    color: var(--cm-blue) !important;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 80px;
    width: auto;
    height: auto;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-btn:hover {
    background: var(--cm-blue);
    color: var(--bg-white);
}

.language-btn i:last-child {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1040;
    overflow: hidden;
}

.language-menu--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option span {
    font-size: 1.25rem;
}

@media (max-width: 1024px) {
    .language-selector {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .language-menu {
        right: auto;
        left: 0;
    }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    padding-top: calc(4.5rem + 84px);
    padding-bottom: 4rem;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 68%);
    border-bottom: 1px solid #edf2f7;
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(2.75rem + 68px);
        padding-bottom: 2.25rem;
    }
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.035;
}

.hero__shape--1 {
    width: 400px;
    height: 400px;
    background: var(--cm-blue);
    top: -240px;
    right: -100px;
}

.hero__shape--2 {
    width: 300px;
    height: 300px;
    background: var(--cm-blue-light);
    bottom: -190px;
    left: -100px;
}

.hero__shape--3 {
    width: 200px;
    height: 200px;
    background: var(--cm-blue-light);
    top: 58%;
    left: 7%;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (min-width: 1024px) {
    .hero__content {
        grid-template-columns: 1.2fr 1fr;
        gap: 4.5rem;
    }
}

.hero__text {
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero__title-highlight {
    color: var(--cm-yellow);
    display: block;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

.hero__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--cm-blue);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 0.75rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero__contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.hero__contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero__contact-icon {
    font-size: 1.5rem;
    color: var(--cm-blue);
}

.hero__contact-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

.hero__contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.hero__image {
    position: relative;
    z-index: 1;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image-placeholder {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero__image-placeholder img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero__image-icon {
    font-size: 120px;
    margin-bottom: 1.5rem;
    color: var(--cm-blue);
}

.hero__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero__badge {
    position: absolute;
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 0.75rem 1.125rem;
    border: 1px solid #e6edf5;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.hero__badge--1 {
    top: 20px;
    left: -20px;
    padding: 1rem;
}

@media (max-width: 768px) {
    .hero__badge--1 {
        left: 10px;
    }
}

.hero__badge--2 {
    bottom: 30px;
    right: -20px;
    animation-delay: 1.5s;
}

@media (max-width: 768px) {
    .hero__badge--2 {
        right: 10px;
    }
}

.hero__badge-number {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--cm-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero__badge-logo {
    display: block;
    width: 108px;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.hero__badge-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===================================
   PROFILE SECTION (EMPRESA)
   =================================== */

.profile {
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 50%, var(--bg-white) 100%);
    padding: 3.5rem 0;
    position: relative;
}

.profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
}

@media (min-width: 768px) {
    .profile {
        padding: 4.5rem 0;
    }
}

@media (min-width: 1024px) {
    .profile {
        padding: 5.5rem 0;
    }
}

.profile__header {
    margin-bottom: 3rem;
    position: relative;
}

@media (min-width: 768px) {
    .profile__header {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .profile__header {
        margin-bottom: 4.5rem;
    }
}

.profile__title {
    color: var(--cm-blue-dark);
    margin-bottom: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: 1.875rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .profile__title {
        font-size: 2.125rem;
        margin-bottom: 1.375rem;
    }
}

@media (min-width: 1024px) {
    .profile__title {
        font-size: 2.375rem;
    }
}

.profile__subtitle {
    font-size: 1.125rem;
    color: #64748b;
    font-style: normal;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    letter-spacing: 0.01em;
    position: relative;
    padding-top: 1rem;
}

.profile__subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cm-blue), transparent);
    opacity: 0.3;
}

@media (min-width: 768px) {
    .profile__subtitle {
        font-size: 1.1875rem;
        max-width: 640px;
    }
}

@media (min-width: 1024px) {
    .profile__subtitle {
        font-size: 1.25rem;
        padding-top: 1.25rem;
    }
}

.profile__content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .profile__content {
        gap: 5rem;
    }
}

.profile__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .profile__main {
        grid-template-columns: 400px 1fr;
        gap: 4rem;
    }
}

@media (min-width: 1400px) {
    .profile__main {
        gap: 4.5rem;
    }
}

.profile__image-container {
    position: relative;
}

.profile__image-placeholder {
    background: linear-gradient(145deg, #f0f7ff 0%, #ffffff 50%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 3px 10px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(30, 64, 175, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile__image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(30, 64, 175, 0.02), transparent 70%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .profile__image-placeholder {
        padding: 2.5rem;
        min-height: 480px;
    }
    
    .profile__image-placeholder:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
    }
}

.profile__image-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .profile__image-placeholder:hover .profile__image-img {
        transform: scale(1.02);
    }
}

.profile__instalaciones-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .profile__instalaciones-stats {
        gap: 0.875rem;
        margin-top: 1.75rem;
    }
}

.instalaciones-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8125rem 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0.625rem;
    border-left: 1.5px solid var(--cm-blue);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instalaciones-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1.5px;
    height: 100%;
    background: linear-gradient(180deg, var(--cm-blue), rgba(30, 64, 175, 0.6));
    transition: width 0.3s ease;
}

.instalaciones-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04);
    border-left-color: rgba(30, 64, 175, 0.9);
}

.instalaciones-stat:hover::before {
    width: 2px;
}

@media (min-width: 1024px) {
    .instalaciones-stat {
        padding: 0.9375rem 0.875rem;
        gap: 0.8125rem;
    }
}

.instalaciones-stat i {
    font-size: 1rem;
    color: var(--cm-blue);
    opacity: 0.85;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.instalaciones-stat:hover i {
    transform: scale(1.05);
    color: rgba(30, 64, 175, 0.9);
    opacity: 1;
}

.instalaciones-stat-number {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--cm-blue-dark);
    margin: 0;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .instalaciones-stat-number {
        font-size: 1rem;
        font-weight: 800;
    }
}

.instalaciones-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .instalaciones-stat-label {
        font-size: 0.8125rem;
    }
}

.profile__bio {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--cm-blue);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

.profile__bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--cm-blue), rgba(30, 64, 175, 0.7));
    border-radius: 1rem 0 0 1rem;
}

@media (min-width: 1024px) {
    .profile__bio {
        padding: 2.5rem;
        max-width: 680px;
    }
    
    .profile__bio:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06);
    }
}

.profile__bio-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1.375rem;
    letter-spacing: -0.025em;
    position: relative;
    padding-bottom: 0.875rem;
}

.profile__bio-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--cm-blue), rgba(30, 64, 175, 0.3));
    border-radius: 2px;
}

@media (min-width: 1024px) {
    .profile__bio-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .profile__bio-title::after {
        width: 50px;
        height: 3px;
    }
}

.profile__bio-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.profile__bio-text:last-child {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .profile__bio-text {
        font-size: 1.0625rem;
        line-height: 1.8;
        margin-bottom: 1.25rem;
    }
}

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

@media (min-width: 768px) {
    .profile__credentials {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .profile__credentials {
        gap: 3rem;
    }
}

.profile__credential-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.profile__credential-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(30, 64, 175, 0.1);
    transition: border-color 0.3s ease;
}

@media (min-width: 1024px) {
    .profile__credential-header {
        gap: 1.125rem;
        margin-bottom: 1.375rem;
        padding-bottom: 1.125rem;
    }
}

.profile__credential-section:hover .profile__credential-header {
    border-bottom-color: rgba(30, 64, 175, 0.2);
}

.profile__credential-icon {
    width: 2.375rem;
    height: 2.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--cm-blue);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(30, 64, 175, 0.06));
    border-radius: 0.5rem;
    flex-shrink: 0;
    transition: transform var(--transition-premium), background var(--transition-premium), color var(--transition-premium);
}

.profile__credential-section:hover .profile__credential-icon {
    transform: scale(1.03);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.15), rgba(30, 64, 175, 0.08));
}

.profile__credential-title {
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin: 0;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

@media (min-width: 1024px) {
    .profile__credential-title {
        font-size: 1.25rem;
    }
}

.profile__credential-section:hover .profile__credential-title {
    color: rgba(30, 64, 175, 0.95);
}

.profile__credential-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.profile__credential-item {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475569;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease;
    align-items: flex-start;
}

.profile__credential-item:hover {
    color: var(--cm-blue-dark);
    transform: translateX(3px);
}

.profile__credential-item:last-child {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .profile__credential-item {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.125rem;
    }
}

.profile__credential-bullet {
    color: var(--cm-blue);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.5;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: transform 0.2s ease, color 0.3s ease;
}

.profile__credential-item:hover .profile__credential-bullet {
    transform: scale(1.2);
    color: rgba(30, 64, 175, 0.9);
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    background: var(--surface-elevated);
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .services {
        padding: 3.5rem 0;
    }
}

@media (min-width: 1024px) {
    .services {
        padding: 4.5rem 0;
    }
}

.services__header {
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .services__header {
        margin-bottom: 3rem;
    }
}

.services__title {
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--cm-blue-dark);
}

.services__subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.services__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cm-blue), var(--cm-blue-light));
    border-radius: 2px 2px 0 0;
}

.services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #eff6ff;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--cm-blue);
}

.services__card-title {
    font-size: 1.1875rem;
    margin-bottom: 0.75rem;
    color: var(--cm-blue);
}

.services__card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.services__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.services__feature:last-child {
    margin-bottom: 0;
}

.services__feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--cm-blue);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===================================
   PRODUCTOS SECTION
   =================================== */

.productos {
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .productos {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .productos {
        padding: 5rem 0;
    }
}

.section-header {
    margin-bottom: 2rem;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cm-blue), var(--cm-blue-light));
    margin: 1rem auto 0;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
    }
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--cm-blue-dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.producto-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature {
    background: var(--cm-blue);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===================================
   TESTIMONIALS SECTION (PROYECTOS)
   =================================== */

.testimonials {
    background: var(--bg-white);
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .testimonials {
        padding: 3.5rem 0;
    }
}

@media (min-width: 1024px) {
    .testimonials {
        padding: 4.5rem 0;
    }
}

.testimonials__header {
    margin-bottom: 2.5rem;
}

.testimonials__title {
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--cm-blue-dark);
}

.testimonials__subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.testimonials__project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 1024px) {
    .testimonials__project-card {
        padding: 1.75rem;
    }
}

.testimonials__card-title {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin-bottom: 0.75rem;
}

.testimonials__card-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

.proyecto-icon {
    width: 68px;
    height: 68px;
    background: #eff6ff;
    border: 1px solid #c7dcff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.625rem;
    color: var(--cm-blue);
}

.proyecto-icon--logo {
    background: var(--bg-white);
    border: 2px solid #c7dcff;
    border-radius: 1rem;
    padding: 0.625rem;
    width: 92px;
    height: 92px;
}

.proyecto-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.proyecto-location {
    color: var(--cm-blue);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proyecto-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.proyecto-contratos {
    margin-top: 1rem;
}

.contratos-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.contratos-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contratos-list li:last-child {
    margin-bottom: 0;
}

.contratos-list i {
    color: var(--cm-blue);
    margin-top: 0.25rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.stat-badge {
    background: var(--cm-blue);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-badge-year {
    background: var(--cm-blue);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.testimonials__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonials__stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
}

.testimonials__stat:hover {
    transform: translateY(-4px);
}

.testimonials__stat-number {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--cm-blue);
    margin-bottom: 0.375rem;
    font-family: 'Montserrat', sans-serif;
}

.testimonials__stat-label {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===================================
   APPOINTMENT SECTION (CONTACTO)
   =================================== */

.appointment {
    background: var(--bg-white);
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .appointment {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .appointment {
        padding: 5rem 0;
    }
}

.appointment__header {
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .appointment__header {
        margin-bottom: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .appointment__header {
        margin-bottom: 4rem;
    }
}

.appointment__title {
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--cm-blue-dark);
    font-size: 1.875rem;
}

@media (min-width: 768px) {
    .appointment__title {
        font-size: 2.125rem;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .appointment__title {
        font-size: 2.375rem;
    }
}

.appointment__subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .appointment__subtitle {
        font-size: 1.0625rem;
    }
}

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

@media (min-width: 1024px) {
    .appointment__content {
        grid-template-columns: 380px 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1400px) {
    .appointment__content {
        gap: 3.5rem;
    }
}

.appointment__info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .appointment__info {
        gap: 2rem;
    }
}

.appointment__info-card {
    padding: 1.375rem;
}

@media (min-width: 1024px) {
    .appointment__info-card {
        padding: 1.625rem;
    }
}

.appointment__info-card:hover {
    transform: none;
}

.appointment__info-title {
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1.375rem;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .appointment__info-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

.appointment__contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.875rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(30, 64, 175, 0.08);
    transition: all 0.3s ease;
}

.appointment__contact-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-color: rgba(30, 64, 175, 0.15);
    transform: translateX(1px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.appointment__contact-item:last-of-type {
    margin-bottom: 1.75rem;
}

@media (min-width: 1024px) {
    .appointment__contact-item {
        padding: 1.125rem;
        gap: 1.125rem;
    }
}

.appointment__contact-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--cm-blue);
    flex-shrink: 0;
    margin-top: 0.125rem;
    opacity: 0.9;
}

@media (min-width: 1024px) {
    .appointment__contact-icon {
        font-size: 1.625rem;
    }
}

.appointment__contact-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.appointment__contact-value {
    font-size: 0.96875rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin: 0 0 0.25rem;
    display: block;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.appointment__contact-value:hover {
    color: var(--cm-blue);
}

@media (min-width: 1024px) {
    .appointment__contact-value {
        font-size: 1rem;
    }
}

.appointment__contact-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 400;
}

.appointment__map-placeholder {
    background: linear-gradient(135deg, var(--border-color), var(--bg-light));
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
    border: 2px dashed var(--text-gray);
}

.appointment__map-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    color: var(--cm-blue);
}

.appointment__map-container {
    width: 100%;
    height: 280px;
    border-radius: 0.625rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    margin-top: 1.25rem;
    position: relative;
    border: 1px solid rgba(30, 64, 175, 0.08);
}

@media (min-width: 1024px) {
    .appointment__map-container {
        height: 300px;
    }
}

.appointment__map {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
}

.appointment__map-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appointment__map-placeholder {
    background: linear-gradient(135deg, var(--border-color), var(--bg-light));
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.appointment__map-fallback-note {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.appointment__hours {
    padding: 1.375rem;
}

@media (min-width: 1024px) {
    .appointment__hours {
        padding: 1.625rem;
    }
}

.appointment__hours:hover {
    transform: none;
}

.appointment__hours-title {
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .appointment__hours-title {
        font-size: 1.25rem;
        margin-bottom: 1.375rem;
    }
}

.appointment__hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

@media (min-width: 1024px) {
    .appointment__hours-list {
        gap: 1rem;
    }
}

.appointment__hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.125rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0.625rem;
    border: 1px solid rgba(30, 64, 175, 0.08);
    transition: all 0.3s ease;
}

.appointment__hours-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-color: rgba(30, 64, 175, 0.15);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.appointment__hours-item--closed {
    opacity: 0.65;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.appointment__hours-day {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

@media (min-width: 1024px) {
    .appointment__hours-day {
        font-size: 1rem;
    }
}

.appointment__hours-time {
    font-weight: 700;
    color: var(--cm-blue);
    font-size: 0.9375rem;
    font-family: 'Montserrat', sans-serif;
}

@media (min-width: 1024px) {
    .appointment__hours-time {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .appointment__form-container {
        position: sticky;
        top: 100px;
    }
}

.appointment__form {
    padding: 1.75rem;
}

.appointment__form:hover {
    transform: none;
}

@media (min-width: 1024px) {
    .appointment__form {
        padding: 2.25rem;
    }
}

@media (min-width: 1400px) {
    .appointment__form {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .appointment__form {
        padding: 1.5rem;
    }
}

.appointment__form-title {
    font-size: 1.3125rem;
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .appointment__form-title {
        font-size: 1.4375rem;
        margin-bottom: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .appointment__form-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

.appointment__form-group {
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .appointment__form-group {
        margin-bottom: 1.125rem;
    }
}

.appointment__form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.appointment__form-group input,
.appointment__form-group textarea,
.appointment__form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appointment__form-group input:focus,
.appointment__form-group textarea:focus,
.appointment__form-group select:focus {
    outline: none;
    border-color: var(--cm-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.appointment__form-group input::placeholder,
.appointment__form-group textarea::placeholder,
.appointment__form-group select::placeholder {
    color: var(--text-gray);
}

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

@media (min-width: 768px) {
    .appointment__form-group textarea {
        min-height: 140px;
    }
}

.appointment__form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .appointment__form-row {
        gap: 1.125rem;
    }
}

@media (min-width: 640px) {
    .appointment__form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.appointment__form-note {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .appointment__form-note {
        font-size: 0.875rem;
        margin-top: 1.125rem;
    }
}

.appointment__submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9375rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .appointment__submit {
        padding: 1.0625rem 1.75rem;
        font-size: 1.0625rem;
    }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    color: var(--bg-white);
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .footer__section--main {
        padding-right: 2rem;
    }
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer__logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

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

.footer__logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-white);
    margin: 0;
    line-height: 1.2;
}

.footer__logo-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.2;
}

.footer__description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all 0.3s ease-in-out;
    color: var(--bg-white);
}

.footer__social-link:hover {
    background: var(--cm-blue);
    transform: translateY(-4px);
}

.footer__section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__link {
    display: inline-block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    transition: color 0.15s ease-in-out;
    cursor: pointer;
}

.footer__link:hover {
    color: var(--cm-blue-light);
    transform: translateX(4px);
}

.footer__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer__contact-icon {
    font-size: 1.125rem;
}

.footer__hours {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border-left: 3px solid var(--cm-blue);
}

.footer__hours-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 0.25rem;
}

.footer__hours-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.footer__hours-text:last-child {
    margin-bottom: 0;
}

.footer__bottom {
    padding-top: 2rem;
}

.footer__bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .footer__bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

.footer__legal-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s ease-in-out;
}

.footer__legal-link:hover {
    color: var(--cm-blue-light);
}

.footer__legal-separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer__note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 0;
}

/* ===================================
   WHATSAPP BUTTON
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: whatsappPulse 2s infinite;
}

/* Ajustar scroll-to-top cuando WhatsApp está visible */
.whatsapp-float ~ .scroll-to-top {
    bottom: 100px;
}

@media (min-width: 768px) {
    .whatsapp-float ~ .scroll-to-top {
        bottom: 110px;
    }
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-btn i {
    font-size: 28px;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

@media (max-width: 768px) {
    .header__logo-icon {
        width: 68px;
        height: 68px;
    }

    .header__logo-title {
        font-size: 1.125rem;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__features {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__feature {
        font-size: 0.9375rem;
    }
    
    .hero__cta {
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .hero__contact-quick {
        justify-content: center;
        gap: 1rem;
        padding-top: 1rem;
    }

    .hero__contact-value {
        font-size: 0.9375rem;
    }

    .hero__image-placeholder {
        min-height: 280px;
    }

    .hero__badge {
        padding: 0.625rem 0.875rem;
    }

    .hero__badge--2 {
        display: none;
    }
    
    .card {
        padding: 1.25rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .profile__content {
        gap: 2.5rem;
    }

    .profile__credentials {
        gap: 1rem;
    }

    .profile__main,
    .appointment__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .appointment__contact-item {
        padding: 0.875rem;
        gap: 0.875rem;
    }
    
    .appointment__contact-icon {
        font-size: 1.375rem;
    }
    
    .appointment__contact-label {
        font-size: 0.75rem;
    }
    
    .appointment__contact-value {
        font-size: 0.9375rem;
    }
    
    .appointment__map-container {
        height: 240px;
        margin-top: 1rem;
    }
    
    .appointment__info-card {
        padding: 1.25rem;
    }
    
    .appointment__info-title {
        font-size: 1.125rem;
        margin-bottom: 1.125rem;
    }
    
    .appointment__hours {
        padding: 1.25rem;
    }
    
    .appointment__hours-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .appointment__hours-item {
        padding: 0.875rem 1rem;
    }
    
    .appointment__hours-day,
    .appointment__hours-time {
        font-size: 0.875rem;
    }
    
    .appointment__form-title {
        font-size: 1.25rem;
        margin-bottom: 1.375rem;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    .hero__title {
        font-size: 1.375rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .card {
        padding: 1rem;
    }
    
    .profile {
        padding: 2.5rem 0;
    }
    
    .profile__header {
        margin-bottom: 2rem;
    }
    
    .profile__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .profile__subtitle {
        font-size: 1rem;
        padding-top: 0.875rem;
    }
    
    .profile__content {
        gap: 3rem;
    }
    
    .profile__main {
        gap: 2.5rem;
    }
    
    .profile__image-placeholder {
        padding: 1.75rem;
        min-height: 400px;
    }
    
    .profile__instalaciones-stats {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .instalaciones-stat {
        padding: 0.875rem 0.75rem;
        gap: 0.75rem;
    }
    
    .instalaciones-stat i {
        font-size: 1rem;
    }
    
    .instalaciones-stat-number {
        font-size: 0.9375rem;
    }
    
    .instalaciones-stat-label {
        font-size: 0.75rem;
    }
    
    .profile__bio {
        padding: 1.5rem;
    }
    
    .profile__bio-title {
        font-size: 1.1875rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .profile__bio-text {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 0.9375rem;
    }
    
    .profile__credentials {
        gap: 1.5rem;
    }
    
    .profile__credential-header {
        gap: 0.9375rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .profile__credential-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
    
    .profile__credential-title {
        font-size: 1.125rem;
    }
    
    .profile__credential-item {
        font-size: 0.9375rem;
        gap: 0.625rem;
        margin-bottom: 0.875rem;
    }
    
    .whatsapp-float {
        bottom: 10px;
        right: 10px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn i {
        font-size: 22px;
    }
}

@media (max-width: 390px) {
    .container {
        padding: 0 0.75rem;
    }

    .header__logo-icon {
        width: 60px;
        height: 60px;
    }

    .header__logo-title {
        font-size: 1rem;
    }

    .hero {
        padding-top: calc(2.5rem + 60px);
        padding-bottom: 2rem;
    }

    .hero__title {
        font-size: 1.25rem;
    }

    .hero__subtitle {
        font-size: 0.875rem;
    }

    .hero__feature {
        font-size: 0.8125rem;
    }

    .hero__contact-quick {
        flex-direction: column;
        align-items: center;
        gap: 0.875rem;
    }

    .hero__contact-item {
        gap: 0.625rem;
    }

    .hero__contact-icon {
        font-size: 1.25rem;
    }

    .hero__contact-label {
        font-size: 0.75rem;
    }

    .hero__contact-value {
        font-size: 0.875rem;
    }

    .hero__image-placeholder {
        min-height: 240px;
    }

    .btn,
    .btn-large {
        padding: 0.9375rem 1.5rem;
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .section-subtitle {
        font-size: 0.875rem;
    }
}

/* ===================================
   ANIMACIONES
   =================================== */

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

/* ===================================
   RECONOCIMIENTOS SECTION
   =================================== */

.reconocimientos {
    background: var(--surface-elevated);
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .reconocimientos {
        padding: 3.5rem 0;
    }
}

@media (min-width: 1024px) {
    .reconocimientos {
        padding: 4rem 0;
    }
}

.reconocimientos__header {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .reconocimientos__header {
        margin-bottom: 2.5rem;
    }
}

.reconocimientos__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.reconocimientos__subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.reconocimientos__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .reconocimientos__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .reconocimientos__grid {
        gap: 4rem;
    }
}

.reconocimientos__item {
    text-align: center;
    padding: 1.375rem 1.25rem;
    transition: transform var(--transition-premium), box-shadow var(--transition-premium), border-color var(--transition-premium);
    border-top: 2px solid rgba(30, 64, 175, 0.45);
}

@media (min-width: 1024px) {
    .reconocimientos__item {
        padding: 2rem 1.5rem;
    }
}

.reconocimientos__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.reconocimientos__item--highlight {
    border-top-color: var(--cm-blue);
}

.reconocimientos__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--bg-white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.reconocimientos__icon--cti {
    background: linear-gradient(135deg, var(--cm-blue), var(--cm-blue-dark));
}

.reconocimientos__icon--zero {
    background: linear-gradient(135deg, #10b981, #059669);
}

.reconocimientos__icon--image {
    background: var(--bg-white);
    border: 2px solid var(--cm-blue);
    padding: 0.5rem;
    border-radius: 0.75rem;
    width: 80px;
    height: 80px;
}

.reconocimientos__icon--zero.reconocimientos__icon--image {
    border-color: var(--cm-yellow);
}

.reconocimientos__logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.reconocimientos__item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin-bottom: 0.75rem;
}

.reconocimientos__item-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   VALORES SECTION
   =================================== */

.valores {
    background: var(--bg-white);
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .valores {
        padding: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .valores {
        padding: 4rem 0;
    }
}

.valores__header {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .valores__header {
        margin-bottom: 2.5rem;
    }
}

.valores__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.valores__subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

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

@media (min-width: 640px) {
    .valores__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .valores__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.valores__item {
    text-align: center;
    padding: 1.375rem 1.25rem;
    transition: transform var(--transition-premium), box-shadow var(--transition-premium), border-color var(--transition-premium);
    border-top: 2px solid rgba(30, 64, 175, 0.45);
}

@media (min-width: 1024px) {
    .valores__item {
        padding: 1.625rem 1.375rem;
    }
}

.valores__item:hover {
    transform: translateY(-2px);
    border-top-color: rgba(30, 64, 175, 0.8);
    box-shadow: var(--shadow-hover);
}

.valores__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    background: #eff6ff;
    border: 1px solid #c7dcff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--cm-blue);
    box-shadow: none;
    transition: all 0.3s ease;
}

.valores__item:hover .valores__icon {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--cm-blue);
    transform: scale(1.04);
    box-shadow: none;
}

.valores__item-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin-bottom: 0.75rem;
}

.valores__item-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   BIBLIOTECA DE RECURSOS SECTION
   =================================== */

.resources {
    background: var(--bg-light);
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .resources {
        padding: 3.5rem 0;
    }
}

@media (min-width: 1024px) {
    .resources {
        padding: 4rem 0;
    }
}

.resources__header {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .resources__header {
        margin-bottom: 2.5rem;
    }
}

.resources__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.resources__subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .resources__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .resources__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resources__card {
    padding: 1.625rem 1.375rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resources__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.resources__card--coming-soon {
    opacity: 0.85;
    position: relative;
}

.resources__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--cm-blue), var(--cm-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
}

.resources__card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.resources__card-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.resources__card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.resources__meta-item {
    font-size: 0.8125rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resources__meta-item i {
    color: var(--cm-blue);
    width: 1rem;
}

.resources__card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .resources__card-actions {
        flex-direction: row;
    }
}

.resources__card-actions .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
}

.resources__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--cm-blue);
    color: white;
    padding: 0.3125rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .resources {
        padding: 2rem 0;
    }
    
    .resources__card {
        padding: 1.5rem 1.25rem;
    }
    
    .resources__icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .resources__grid {
        gap: 1.25rem;
    }
    
    .resources__card-actions {
        flex-direction: column;
    }
}

/* ===================================
   PRODUCTO CARDS (Nuevo Diseño)
   =================================== */

.productos-grid {
    gap: 2rem;
}

@media (min-width: 1024px) {
    .productos-grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .productos-grid {
        gap: 3rem;
    }
}

.producto-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 1.25rem;
    transition: transform var(--transition-premium), box-shadow var(--transition-premium), border-color var(--transition-premium);
    border-top: 2px solid rgba(30, 64, 175, 0.45);
    height: 100%;
}

@media (min-width: 1024px) {
    .producto-card {
        padding: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .producto-card {
        padding: 1.75rem;
    }
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cm-blue), var(--cm-blue-light));
    border-radius: 2px 2px 0 0;
}

.producto-card:hover {
    transform: translateY(-2px);
    border-top-color: rgba(30, 64, 175, 0.8);
    box-shadow: var(--shadow-hover);
}

.producto-card__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    background: #eff6ff;
    border: 1px solid #c7dcff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0625rem;
    color: var(--cm-blue);
    box-shadow: none;
    transition: all 0.3s ease;
}

.producto-card:hover .producto-card__icon {
    background: #fff7e6;
    border-color: #f7d58a;
    color: var(--cm-yellow-dark);
    transform: scale(1.04);
    box-shadow: none;
}

.producto-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}

.producto-card__image-container {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.producto-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.producto-card__image-container:hover .producto-card__image {
    transform: scale(1.05);
}

.producto-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto-card__image-container:hover .producto-card__overlay {
    opacity: 1;
}

.producto-card__btn {
    background: var(--cm-blue);
    color: var(--bg-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.producto-card__btn:hover {
    background: var(--cm-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.25);
}

.producto-card__description {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.875rem;
    flex-grow: 0;
    text-align: left;
}

.producto-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: auto;
}

.producto-card__feature {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--cm-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.producto-card__materials {
    margin: 1rem 0;
    padding: 0.875rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border: 1px solid #e4ecf5;
}

.producto-card__materials-title {
    font-weight: 600;
    color: var(--cm-blue);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.producto-card__materials-heading {
    font-weight: 600;
    color: var(--cm-blue);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.producto-card__materials-item {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.producto-card__materials-check {
    color: #10b981;
    margin-right: 0.5rem;
}

.producto-card__materials-note {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.producto-card__materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.producto-card__materials-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.producto-card__materials-list li:last-child {
    margin-bottom: 0;
}

.producto-card__materials-list i {
    color: var(--cm-blue);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.producto-card__characteristics {
    list-style: none;
    padding: 0.875rem;
    margin: 1rem 0;
    text-align: left;
    background: var(--bg-light);
    border: 1px solid #e4ecf5;
    border-radius: 0.5rem;
}

.producto-card__characteristics li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.producto-card__characteristics li:last-child {
    margin-bottom: 0;
}

.producto-card__characteristics i {
    color: var(--cm-blue);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.producto-card__specs {
    margin: 1rem 0;
    padding: 0.875rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border: 1px solid #e4ecf5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.producto-card__spec-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.producto-card__spec-label {
    color: var(--text-light);
    font-weight: 500;
}

.producto-card__spec-value {
    color: var(--cm-blue-dark);
    font-weight: 600;
    text-align: right;
}

.producto-card__section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin: 0.25rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ===================================
   PRODUCT MODAL
   =================================== */

.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.product-modal__content {
    position: relative;
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--cm-blue);
    color: var(--bg-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.product-modal__close:hover {
    background: var(--cm-blue-dark);
    transform: rotate(90deg);
}

.product-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cm-blue-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-modal__gallery {
    margin-bottom: 2rem;
}

.product-modal__main {
    width: 100%;
    height: 400px;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 1rem;
}

.product-modal__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.product-modal__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.product-modal__thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-modal__thumbs img:hover {
    opacity: 1;
    border-color: var(--cm-blue);
}

.product-modal__thumbs img.active {
    opacity: 1;
    border-color: var(--cm-blue);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.3);
}

.product-modal__description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

@media (max-width: 768px) {
    .product-modal__content {
        padding: 1.25rem;
        width: 95%;
    }
    
    .product-modal__main {
        height: 300px;
    }
    
    .product-modal__title {
        font-size: 1.375rem;
    }

    .product-modal__description {
        font-size: 0.9375rem;
        line-height: 1.6;
        padding: 1rem;
    }
}

/* ===================================
   PRODUCTO GALLERY (Opción 3) - Legacy
   =================================== */

.producto-gallery-card {
    overflow: visible;
}

.producto-gallery {
    margin-bottom: 1.5rem;
}

.producto-gallery-main {
    width: 100%;
    height: 250px;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .producto-gallery-main {
        height: 400px;
        padding: 1rem;
    }
}

.producto-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.producto-main-img:hover {
    transform: scale(1.05);
}

.producto-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0.4rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--cm-blue) var(--bg-light);
}

.producto-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.producto-gallery-thumbs::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.producto-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--cm-blue);
    border-radius: 10px;
}

.producto-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: var(--cm-blue-dark);
}

.producto-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.4rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    min-width: 50px;
}

.producto-thumb:hover {
    opacity: 1;
    border-color: var(--cm-blue);
    transform: translateY(-2px);
}

.producto-thumb.active {
    opacity: 1;
    border-color: var(--cm-blue);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.3);
}

.producto-materials {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border-left: 3px solid var(--cm-blue);
}

.materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.materials-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.materials-list li i {
    color: #10b981;
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .producto-gallery-thumbs {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 768px) {
    .producto-gallery-main {
        height: 220px;
    }
    
    .producto-gallery-thumbs {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .producto-gallery-main {
        height: 200px;
    }
    
    .producto-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }
}

/* ===================================
   FEATURES HIGHLIGHT SECTION
   =================================== */

.features-highlight {
    background: var(--bg-white);
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .features-highlight {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .features-highlight {
        padding: 4.5rem 0;
    }
}

.features-highlight__header {
    margin-bottom: 2.5rem;
}

.features-highlight__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.features-highlight__subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-highlight__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .features-highlight__grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .features-highlight__grid {
        gap: 3rem;
    }
}

@media (min-width: 640px) {
    .features-highlight__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-highlight__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.features-highlight__item {
    text-align: center;
    padding: 1.5rem 1.375rem;
    transition: transform var(--transition-premium), box-shadow var(--transition-premium), border-color var(--transition-premium);
    border-top: 2px solid rgba(30, 64, 175, 0.45);
}

.features-highlight__item:hover {
    transform: translateY(-2px);
    border-top-color: rgba(30, 64, 175, 0.8);
    box-shadow: var(--shadow-hover);
}

.features-highlight__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    background: #eff6ff;
    border: 1px solid #c7dcff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--cm-blue);
    box-shadow: none;
    transition: all 0.3s ease;
}

.features-highlight__item:hover .features-highlight__icon {
    background: #fff7e6;
    border-color: #f7d58a;
    color: var(--cm-yellow-dark);
    transform: scale(1.04);
    box-shadow: none;
}

.features-highlight__item-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin-bottom: 0.75rem;
}

.features-highlight__item-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   CLIENTS SECTION
   =================================== */

.clients {
    background: var(--bg-white);
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .clients {
        padding: 3.5rem 0;
    }
}

@media (min-width: 1024px) {
    .clients {
        padding: 4rem 0;
    }
}

.clients__header {
    margin-bottom: 2.5rem;
}

.clients__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--cm-blue-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.clients__subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.clients__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .clients__grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .clients__grid {
        gap: 3rem;
    }
}

.clients__grid--featured {
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .clients__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .clients__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.clients__card {
    text-align: center;
    padding: 1.5rem 1.375rem;
    transition: transform var(--transition-premium), box-shadow var(--transition-premium), border-color var(--transition-premium);
    border-top: 2px solid rgba(30, 64, 175, 0.45);
}

.clients__card:hover {
    transform: translateY(-2px);
    border-top-color: rgba(30, 64, 175, 0.8);
    box-shadow: var(--shadow-hover);
}

.clients__logo-placeholder {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    background: #eff6ff;
    border: 1px solid #c7dcff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.clients__logo-icon {
    font-size: 1.625rem;
    color: var(--cm-blue);
}

.clients__logo-placeholder--image {
    background: var(--bg-white);
    border: 3px solid var(--cm-blue);
    padding: 0.5rem;
    overflow: hidden;
}

.clients__logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.clients__name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin-bottom: 0.75rem;
}

.clients__description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.clients__services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.clients__service-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--cm-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.clients__service-tag--highlight {
    background: var(--cm-yellow);
    color: var(--text-dark);
    border-color: var(--cm-yellow-dark);
    font-weight: 600;
}

.clients__note {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 1rem;
    border-left: 4px solid var(--cm-blue);
}

.clients__note-text {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Galería de Logos */
.clients__logos-gallery {
    margin-top: 2rem;
}

.clients__gallery-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--cm-blue-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.clients__logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .clients__logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .clients__logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .clients__logos-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

.clients__logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 0.75rem;
    border: 2px solid var(--bg-light);
    transition: all 0.3s ease;
    min-height: 100px;
}

.clients__logo-item:hover {
    transform: translateY(-2px);
    border-color: var(--cm-blue);
    box-shadow: var(--shadow-hover);
}

.clients__gallery-logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clients__logo-item:hover .clients__gallery-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.clients__gallery-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cm-blue-dark);
    text-align: center;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .clients__gallery-logo {
        width: 100px;
        height: 70px;
    }
    
    .clients__gallery-name {
        font-size: 0.875rem;
    }
    
    .clients__logo-item {
        min-height: 120px;
        padding: 1.25rem;
    }
}

/* ===================================
   ACCESIBILIDAD
   =================================== */

.btn:focus,
.header__nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--cm-blue);
    outline-offset: 2px;
}

/* ===================================
   SKIP TO CONTENT (ACCESSIBILITY)
   =================================== */

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--cm-blue);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--cm-yellow);
    outline-offset: 2px;
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--cm-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--cm-blue-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:focus {
    outline: 3px solid var(--cm-yellow);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .whatsapp-float ~ .scroll-to-top {
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 80px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .whatsapp-float ~ .scroll-to-top {
        bottom: 80px;
    }
}

/* ===================================
   FLOATING LABELS FORM
   =================================== */

.form-group-floating {
    position: relative;
    margin-bottom: 1.125rem;
}

@media (min-width: 1024px) {
    .form-group-floating {
        margin-bottom: 1.25rem;
    }
}

.form-input-floating {
    width: 100%;
    padding: 1.125rem 1rem 0.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-white);
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.form-input-floating:focus {
    outline: none;
    border-color: var(--cm-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input-floating:focus + .form-label-floating,
.form-input-floating:not(:placeholder-shown) + .form-label-floating {
    transform: translateY(-0.5rem) scale(0.85);
    color: var(--cm-blue);
}

.form-input-floating::placeholder {
    color: transparent;
}

.form-label-floating {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--bg-white);
    padding: 0 0.25rem;
    transform-origin: left top;
}

.form-group-floating select.form-input-floating {
    padding-top: 1.125rem;
    padding-bottom: 0.75rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e40af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group-floating select.form-input-floating:focus + .form-label-floating,
.form-group-floating select.form-input-floating:not([value=""]) + .form-label-floating {
    transform: translateY(-0.5rem) scale(0.85);
    color: var(--cm-blue);
}

.form-group-floating textarea.form-input-floating {
    padding-top: 1.125rem;
    min-height: 120px;
    resize: vertical;
}

@media (min-width: 768px) {
    .form-group-floating textarea.form-input-floating {
        min-height: 140px;
    }
}

.form-error {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.form-input-floating.error {
    border-color: #ef4444;
}

.form-input-floating.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ===================================
   ACTIVE NAVIGATION INDICATOR
   =================================== */

.header__nav-link.active {
    color: var(--cm-blue);
    font-weight: 600;
    position: relative;
}

.header__nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cm-yellow);
    border-radius: 3px 3px 0 0;
}

/* ===================================
   FADE-IN ANIMATIONS ON SCROLL
   =================================== */

/* Asegurar que todo el contenido crítico sea visible por defecto */
.hero,
.hero__content,
.hero__text,
.hero__title,
.hero__subtitle,
.hero__features,
.hero__cta,
.hero__image,
.hero__image-wrapper,
.hero__image-placeholder,
.hero__image-img,
.hero__badge,
.profile,
.profile__header,
.profile__content,
.services,
.services__header,
.services__grid,
.productos,
.section-header {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Solo aplicar fade-in-up a elementos que explícitamente tienen la clase Y están fuera del viewport inicial */
.fade-in-up:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Asegurar que elementos sin clase fade-in-up sean siempre visibles */
.card:not(.fade-in-up),
.producto-card:not(.fade-in-up),
.service-card:not(.fade-in-up),
.testimonial-card:not(.fade-in-up),
section:not(.fade-in-up) {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Prevenir que elementos visibles se oculten */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up.visible {
        opacity: 1 !important;
    }
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* ===================================
   IMPROVED HOVER STATES
   =================================== */

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.producto-card:hover {
    transform: translateY(-2px);
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* ===================================
   LOADING STATES
   =================================== */

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

