* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - Meisa */
    --meisa-red: hsl(0, 88%, 60%);
    --meisa-blue: hsl(216, 35%, 92%);
    --meisa-blue-dark: hsl(212, 85%, 30%);

    /* Background & Surface */
    --background: hsl(210, 20%, 98%);
    --foreground: hsl(212, 15%, 15%);
    --surface: hsl(0, 0%, 100%);
    --surface-muted: hsl(210, 15%, 97%);

    /* Interactive Colors */
    --primary: var(--meisa-blue);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-hover: var(--meisa-blue-dark);

    --secondary: var(--meisa-red);
    --secondary-foreground: hsl(0, 0%, 100%);
    --secondary-hover: hsl(0, 88%, 45%);

    /* Neutral Palette */
    --muted: hsl(210, 15%, 95%);
    --muted-foreground: hsl(212, 10%, 45%);
    --accent: hsl(210, 20%, 92%);
    --accent-foreground: hsl(212, 15%, 25%);

    /* Functional Colors */
    --destructive: hsl(0, 84%, 60%);
    --success: hsl(142, 70%, 45%);

    /* Borders & Inputs */
    --border: hsl(210, 20%, 88%);
    --input: hsl(210, 20%, 95%);
    --ring: var(--meisa-blue);

    /* Layout */
    --radius: 0.75rem;

    /* Gradients */
    --gradient-hero: linear-gradient(90deg,
            var(--meisa-blue) 0%,
            var(--meisa-blue) 37%,
            color-mix(in oklab, var(--meisa-blue) 50%, var(--meisa-red) 50%) 50%,
            var(--meisa-red) 63%,
            var(--meisa-red) 100%);
    --gradient-card: linear-gradient(145deg, var(--surface) 0%, var(--surface-muted) 100%);

    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(212, 85%, 40%, 0.15);
    --shadow-medium: 0 8px 30px -6px hsla(212, 85%, 40%, 0.2);
    --shadow-strong: 0 20px 40px -12px hsla(212, 85%, 40%, 0.3);

    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /*Pic Meisa Historia*/
    --accent: hsl(212, 85%, 30%);
    --border: hsl(210, 20%, 88%);
    --surface: #fff;
    --foreground: hsl(212, 15%, 15%);

    --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --transition-smooth: all 0.3s ease;

}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Títulos con Montserrat */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.service-title,
.historia__title,
.ring-title,
.tile h3,
.login-title,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    margin-bottom: 80px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    text-decoration: none;
    margin-left: 0;
}

@media (min-width: 992px) {
    .logo {
        margin-left: -6%;
    }
}

.mobile-menu-btn {
    margin-left: auto;
}

.logo-img {
    height: 3.5rem;
    width: auto;

}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: hsl(212, 85%, 30%);
    text-decoration: none;
    position: relative;
    margin-top: 5px;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(212, 85%, 30%);
    transition: width 0.3s ease;
}

.logo-text:hover::after {
    width: 100%;
}



.nav {
    display: flex;
    align-items: center;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: hsl(212, 85%, 30%);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(212, 85%, 30%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--foreground);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-menu-btn.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    color: #424242;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 2.2rem + 1vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: hsl(212, 100%, 20%);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
    margin-bottom: 1.5rem;
    color: rgba(8, 47, 104, 0.88);
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    background: hsl(212, 85%, 30%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 30px -12px rgba(13, 57, 119, 0.55);
    transition: transform 0.25s var(--transition-bounce), box-shadow 0.25s var(--transition-bounce);
}

.hero-cta:hover,
.hero-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(13, 57, 119, 0.55);
}

.hero-cta:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.hero-cta__icon {
    font-size: 1.2rem;
}

.hero-cta-note {
    font-size: 0.95rem;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Login Card */
.login-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    color: var(--foreground);
    width: min(420px, 100%);
    margin: 0 auto;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: hsl(212, 85%, 30%)
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: auto;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-label i {
    color: var(--primary);
    width: 1rem;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    background: var(--input);
    color: var(--foreground);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(212, 85%, 40%, 0.2);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 69%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--input);
    position: relative;
    transition: var(--transition-smooth);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: hsl(212, 85%, 30%);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 0.75rem;
}

.forgot-link {
    color: hsl(212, 85%, 30%);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: hsl(212, 85%, 30%);
    color: var(--primary-foreground);
    border: none;
    border-radius: calc(var(--radius) - 4px);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.login-btn:hover {
    background: hsl(212, 85%, 30%)
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(212, 85%, 30%);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}



/* Lista de ítems clara y legible */
.service-list {
    list-style: none;
    margin: -2.25rem 0 0;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 0.5rem;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.45;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

/*.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
    .service-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}
.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-foreground);
}*/

.service-card {
    text-align: center;
    /* mantenemos el look actual */
}

.service-title {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: .2px;
}


.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    color: var(--muted-foreground);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}


/* Imagen ocupa toda la parte superior */
.service-media-top {
    width: 100%;
    height: 160px;
    /* ajusta altura a tu gusto */
    border-radius: var(--radius) var(--radius) 0 0;
    /* bordes redondeados arriba */
    overflow: hidden;
}

.service-media-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorta sin deformar */
    display: block;
}

/* Ajustes para que el contenido se separe bien */
.service-card {
    padding: 0;
    /* quitamos padding general */
    text-align: left;
    overflow: hidden;
}

.service-card h3,
.service-card ul {
    padding: 1.5rem;
    /* padding interno para el texto */
}

/* Specialty Sections */
.specialty-section {
    padding: 5rem 0;
}

.specialty-section.alt {
    background: var(--surface-muted);
}

.specialty-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.specialty-content.reverse {
    direction: rtl;
}

.specialty-content.reverse>* {
    direction: ltr;
}

.specialty-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.specialty-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.specialty-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.specialty-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.specialty-features .feature-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.specialty-features h4 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.specialty-features p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.visual-placeholder {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.visual-placeholder i {
    font-size: 4rem;
    color: var(--primary);
}

.visual-placeholder span {
    font-weight: 600;
    color: var(--foreground);
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    background: var(--surface);
}

.contact-section .container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--surface-muted);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Media Queries para responsividad */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-map {
        min-height: 350px;
        order: 2;
        /* Coloca el mapa después del formulario en móviles */
    }

    .contact-content {
        order: 1;
        /* Coloca el formulario primero en móviles */
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .section-title-contact {
        font-size: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .section-title-contact {
        font-size: 1.75rem;
    }
}

/* Si quieres que las filas de inputs se acomoden en dos columnas */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Inputs a 100% del contenedor */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


.form-select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    background: var(--input);
    color: var(--foreground);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(212, 85%, 40%, 0.2);
}

.form-textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    background: var(--input);
    color: var(--foreground);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    min-height: 120px;
    transition: var(--transition-smooth);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(212, 85%, 40%, 0.2);
}

.char-counter {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--muted-foreground, #666);
    pointer-events: none;
}

.textarea-wrapper {
    position: relative;
    width: 100%;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: hsl(212, 85%, 30%);
    color: var(--primary-foreground);
    border: none;
    border-radius: calc(var(--radius) - 4px);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-btn:hover {
    background: var(--primary-hover);
}

/* Footer */
/* Footer */
.footer {
    background: hsl(212, 85%, 30%);
    color: var(--primary-foreground);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* logos a los lados y texto centrado */
    align-items: center; /* alinea verticalmente */
    text-align: center;
    gap: 1rem;
}

.footer-center {
    flex: 1; /* ocupa todo el espacio del centro */
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.footer-version {
    font-size: 0.75rem;
    opacity: 0.75;
}

.footer-logo img {
    max-height: 80px; /* ajusta tamaño de logos */
    height: auto;
    display: block;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 992px) {
    .footer-logo img {
        margin-left: -85px;
        margin-right: -85px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.25rem;
    }

    .footer-logo img {
        max-height: 64px;
        margin: 0;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface);
    color: var(--foreground);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    z-index: 1001;
    transform: translateX(400px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--destructive);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon::before {
    content: '✓';
    color: var(--success);
}

.toast.error .toast-icon::before {
    content: '⚠';
    color: var(--destructive);
}

.toast-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
}






/* ===== KPIs / Cifras ===== */
.stats-section {
    background: var(--surface);
    padding: 3.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;

    list-style: none;
    padding: 0;
    margin: 0;
}

.stat {
    position: relative;
    padding: 0 2rem;
    text-align: center;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border);
}

.stat-number {
    font-weight: 500;
    /* número grande y fluido */
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.1;
    color: hsl(212, 85%, 30%);
}

.stat-label {
    margin-top: .65rem;
    font-size: .85rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}



/* ===== Grid 2×2 a pantalla completa con overlay y hover ===== */
.tiles-hero {
    min-height: 100vh;
    /* ocupa toda la pantalla */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.tile {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    /* para que el overlay no afecte al texto */
}

/* Imagen de fondo */
.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    transform: scale(1);
    filter: brightness(.65) saturate(1);
    transition: transform .6s ease, filter .3s ease;
    z-index: -2;
}

/* Capa oscura + tinte (controlado por --tint HSL) */
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .25), rgba(0, 0, 0, .35));
    /* capa base oscura */
    mix-blend-mode: normal;
    transition: background .3s ease, opacity .3s ease;
    z-index: -1;
}

/* Título centrado */
.tile h3 {
    text-align: center;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0 1rem;
    transform: translateY(0);
    transition: transform .3s ease, text-shadow .3s ease;
    /* tamaño que se parece al de tu diseño */
    font-size: clamp(1rem, 2.2vw + .6rem, 1.75rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* Hover: zoom sutil + tinte de color */
.tile:hover::before {
    transform: scale(1.05);
    filter: brightness(.8) saturate(1.1);
}

.tile:hover::after {
    background:
        linear-gradient(to bottom,
            hsla(212, 85%, 40%, .45),
            hsla(212, 85%, 40%, .55));
}

.tile:hover h3 {
    transform: translateY(-2px);
    text-shadow: 0 4px 16px rgba(0, 0, 0, .45);
}


.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-iz {
    margin-bottom: 100px;
}

/* Contenedor del logo en lugar del título */
.hero-logo-wrap {
    display: block;
    width: min(45vw, 560px);
    /* ocupa aprox. lo mismo que tu H1 */
    margin-bottom: 1rem;
    /* igual que el spacing del título */
}

/* Imagen del logo */
.hero-logo {
    display: block;
    width: 140%;
    height: auto;
    margin-left: -27.5%;
    margin-bottom: -115px;
    /* mantiene proporción */
}

/* espacio antes de la sección Historia */
#historia {
    margin-top: clamp(48px, 7vw, 90px);
    margin-bottom: clamp(48px, 7vw, 90px);
}

/* contenedor: puedes ensanchar SOLO esta sección */
.historia__container {
    max-width: min(1500px, 95vw);
    margin-inline: auto;
}

/* grid responsivo */
.historia__grid {
    display: grid;
    gap: clamp(32px, 6vw, 100px);
    align-items: start;
    /* alineación superior */
}

/* Figura estirada al alto del texto */
.historia__media,
.img-wrapper {
    height: 100%;
}

/* Imagen que llena su contenedor sin deformarse */
.historia__media img,
.img-wrapper img {
    width: 100%;
    height: 100%;
    /* ocupa todo el alto */
    object-fit: cover;
    /* recorta si hace falta */
    display: block;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

/* envoltorio con “marco” desplazado */
.img-wrapper {
    position: relative;
    display: block;
    isolation: isolate;
    /* evita problemas con z-index */
}

/* “marco” detrás de la imagen */
.img-wrapper::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background: hsl(212, 85%, 30%);
    border-radius: 12px;
    z-index: -1;
}

/* Título base */
.historia__title {
    margin: 0 0 1.3rem;
    line-height: 1.1;
    color: hsl(212, 85%, 30%);
    font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem);
    display: block;
    max-width: 100%;

}

/* Párrafos */
.historia__copy p {
    font-size: clamp(.98rem, .5vw + .9rem, 1.1rem);
    line-height: 1.75;
    text-align: justify;
    color: var(--muted-foreground);
    margin: 0 0 1rem;

}



/* Tarjeta lateral izquierda */
.li-left-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

.li-title {
    margin: 0 0 .25rem;
    font-weight: 800;
    letter-spacing: .2px;
    color: hsl(212, 85%, 30%);
}

.li-lead {
    margin: 0 0 1rem;
    color: var(--muted-foreground);
    font-size: .95rem;
}

.li-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.li-list li {
    position: relative;
    padding-left: 1.35rem;
    margin: .4rem 0;
    color: var(--foreground);
}

.li-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: hsl(212, 85%, 30%);
    font-weight: 700;
}

.li-cta {
    display: inline-block;
    margin-top: .25rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: hsl(212, 85%, 30%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.li-cta:hover {
    background: var(--primary-hover);
}

/*==============MAP==================*/
body {
    overflow-x: hidden;
}


.map-full {
    width: 100vw;
    /* ocupa todo el viewport */
    margin-left: 50%;
    transform: translateX(-50%);
    /* centra el bloque a 100vw */
    background: #fff;
}

/* El iframe ocupa todo el ancho y una altura cómoda */
.map-full iframe {
    display: block;
    width: 100%;
    height: 400px;
    /* ajusta a tu gusto */
    border: 0;
}

.tile.analisis {
    --bg: url("{{ url_for('static', filename='uploads/Resources/.analisis.jpg') }}");
}

.tile.termografia {
    --bg: url("{{ url_for('static', filename='uploads/Resources/termografia.jpg') }}");
}

.tile.ultrasonidos {
    --bg: url("{{ url_for('static', filename='uploads/Resources/ultra.jpg') }}");
}

.tile.vibraciones {
    --bg: url("{{ url_for('static', filename='uploads/Resources/vibra.jpg') }}");
}

/* ===== Intro corporativa (ring + valores + linkedin) ===== */


/* Columna de valores (reutiliza tu card ya estilizada) */
.brand-intro__values .li-left-card {
    height: 100%;
}

/* Carrusel centrado debajo */
.brand-intro__linkedin {
    display: grid;
    place-items: center;
}

.ring-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(212, 85%, 30%);
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 500px;
}

.ring-subtitle {
    font-size: 1.4rem;
    font-weight: 800;
    color: hsl(212, 85%, 30%);
    margin-bottom: -5rem;
    text-align: left;
    margin-left: -35px;
}

/* --- Fondo dividido 70/30 para el hero --- */
.hero-section {
    position: relative;
}

/* contener capas absolutas */
.hero-section>.container {
    position: relative;
    z-index: 2;
}

/* Capa base: blanco + marca de agua */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #fff;
    /* 70% izquierda en blanco */
    pointer-events: none;
    /* no interfiere con clicks */
    overflow: hidden;
    /* evita halos por blur */
}

/* Marca de agua sobre el lado izquierdo (SE MANTIENE) */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/static/uploads/Resources/marca_Agua.png") no-repeat center;
    background-size: 60% auto;
    /* ajusta tamaño a gusto */
    opacity: .09;
    /* intensidad de la marca */
}

/* Capa derecha: misma imagen pero DIFUMINADA de base (debajo) */
.hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    /* ~30% del ancho */
    background: url("/static/uploads/Resources/rodamientos.jpg") center/cover no-repeat;
    filter: blur(12px) brightness(.95);
    transform: scale(1.06);
    /* compensa recorte por blur */
    z-index: 0;
    box-shadow: inset 48px 0 48px -48px rgba(255, 255, 255, .9);
    /* feather en la unión */
}

/* NUEVO: Capa derecha nítida con máscara (revela de izq->der) */
.hero-right-sharp {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    background: url("/static/uploads/Resources/rodamientos.jpg") center/cover no-repeat;
    pointer-events: none;
    z-index: 1;
    /* por encima del blur */
    /* Máscara: transparente al inicio y 100% visible hacia la derecha.
     Ajusta los stops para controlar la transición. */
    -webkit-mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.25) 10%,
            rgba(0, 0, 0, 0.55) 20%,
            rgba(0, 0, 0, 0.8) 35%,
            rgba(0, 0, 0, 1) 55%,
            rgba(0, 0, 0, 1) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.25) 10%,
            rgba(0, 0, 0, 0.55) 20%,
            rgba(0, 0, 0, 0.8) 35%,
            rgba(0, 0, 0, 1) 55%,
            rgba(0, 0, 0, 1) 100%);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

/* Responsive (opcional): agranda la franja en móviles y suaviza más el blur */
@media (max-width: 900px) {

    .hero-bg::after,
    .hero-right-sharp {
        width: 40%;
    }

    .hero-bg::after {
        filter: blur(14px);
    }
}






/* Responsive */
@media (max-width: 992px) {
    .brand-intro__grid {
        grid-template-columns: 1fr;
    }
}


/* Responsive: que respire un poco cuando se apila */
@media (max-width: 820px) {
    .li-left-card {
        margin-bottom: 1rem;
    }

    .brand-intro {
        display: none;
    }
}

@media (max-width: 768px) {
    .li-left-card {
        margin-bottom: 1rem;
    }

    .brand-intro {
        display: none;
    }
}



/* En móvil, que no se pase de ancho y quede centrado */
@media (max-width: 768px) {
    .hero-logo-wrap {
        width: min(70vw, 420px);
        margin-inline: auto;
    }

    .hero-logo {
        width: 100%;
        margin: 0 auto;
    }

    .ring-title {
        margin-left: 0;
        text-align: center;
    }

    .ring-subtitle {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-brand {
        width: 100%;
        justify-content: space-between;
    }

    .logo {
        margin-left: 0;
        gap: 1rem;
    }

    .nav {
        width: 100%;
        margin-top: 0.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
        background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 55%, #e8f2ff 100%);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .menu-iz {
        margin-bottom: 0;
    }

    .hero-logo-wrap {
        margin: 0 auto;
        width: min(420px, 80vw);
    }

    .hero-logo {
        width: 100%;
        margin: 0 auto;
    }

    .hero-bg::after,
    .hero-right-sharp {
        display: none;
    }

    .login-card {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .login-card {
        padding: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .forgot-link {
        align-self: flex-start;
    }

    .hero-logo-wrap {
        width: min(320px, 85vw);
    }

    .hero-section {
        padding: 5.5rem 0 2.5rem;
    }
}

@media (max-width: 420px) {
    .header-content {
        padding: 0.5rem 0;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-img {
        height: 3rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .login-card {
        padding: 1.25rem;
    }
}

/* Responsive: apila en móvil */
@media (max-width: 900px) {
    .tiles-hero {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(45vh, 1fr));
    }
}

/*=====================================================================*/

/* Responsive: apila en móvil y oculta separadores */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .stat {
        padding: 0;
    }

    .stat:not(:last-child)::after {
        display: none;
    }
}

/*=====================================================*/

/* Responsive: si hace falta, reduce la altura expandida */
@media (max-width: 768px) {
    .linkedin-card.is-expanded .linkedin-viewport {
        max-height: var(--ln-full, 640px);
    }

    .linkedin-embed {
        height: var(--ln-full, 640px);
    }
}


/* Responsive: reduce alto del iframe en móvil */
@media (max-width: 768px) {
    .linkedin-embed {
        height: 560px;
    }
}

@media (max-width: 480px) {
    .linkedin-embed {
        height: 520px;
    }
}


/* 1 slide en móvil, 2 en desktop */
@media (min-width: 768px) {
    .linkedin-embed {
        height: 620px;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        border-top: 1px solid transparent;
        z-index: 5;
    }

    .nav.active {
        max-height: 320px;
        opacity: 1;
        border-top-color: var(--border);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-medium);
        border-radius: 0.75rem;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        display: block;
        padding: 0.35rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .specialty-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-section {
        padding-top: 4rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .specialty-title {
        font-size: 1.5rem;
    }
}


@media (min-width: 1024px) {
    .map-full iframe {
        height: 560px;

    }
}

/* Desktop: dos columnas (imagen / texto) */
@media (min-width: 992px) {
    .historia__grid {
        grid-template-columns: 1.25fr 1fr;
        /* imagen un poco más ancha */
        align-items: start;
        /* alinea arriba */
    }
}

/* Móvil: apilado, imagen arriba y centrada */
@media (max-width: 991px) {
    .historia__media {
        order: -1;
        /* imagen primero */
        max-width: 720px;
        /* no crecer más de esto */
        margin-inline: auto;
        /* centrar */
        width: 100%;
        height: auto;
        /* en móvil no forzamos alto */
    }
}

/* Evita que el texto se comprima demasiado en desktop */
@media (min-width: 1200px) {
    .historia__copy {
        min-width: 420px;
    }
}

/* Sección Partners */
.partners-section {
    position: relative;
    padding: 2rem 0;
    text-align: center;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, .92), rgba(32, 133, 216, 0.88)),
        url("/static/uploads/Resources/fondo_par_5.jpg") center/cover no-repeat,
        hsl(200, 100%, 99%);
}

.partners-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .35);
    /* añade velo para contraste */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(4px);
}

.partners-section .container {
    position: relative;
    z-index: 1;
}



.partners-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: hsl(212, 85%, 30%);
    margin-bottom: 0.5rem;
}

/* Contenedor grid */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

/* Caja de cada partner */
.partner-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 120px;
    padding: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.partner-item:hover img {
    transform: scale(1.08);
}

.partner-item p {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--foreground);
}







.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 40px);
    align-items: stretch;
}

@media (max-width: 900px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.social-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.22);
    width: 100%;
}

.social-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.social-card__title {
    font-size: 1.35rem;
    color: hsl(212, 85%, 24%);
    margin-bottom: 0.35rem;
}

.social-card__subtitle {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin: 0;
}

.social-card__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-nav-btn,
.social-card__controls .swiper-button-prev,
.social-card__controls .swiper-button-next {
    --btn-size: 44px;
    width: var(--btn-size);
    height: var(--btn-size);
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.social-nav-btn:hover,
.social-card__controls .swiper-button-prev:hover,
.social-card__controls .swiper-button-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
    border-color: var(--primary);
}

.social-nav-btn::after {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(212, 85%, 30%);
    content: "";
}

.social-nav-btn--youtube-prev::after {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%231E64B5' d='M13.53 7.53a.75.75 0 0 0-1.06-1.06l-4.5 4.5a.75.75 0 0 0 0 1.06l4.5 4.5a.75.75 0 1 0 1.06-1.06L9.56 12l3.97-3.97Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.social-nav-btn--youtube-next::after {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%231E64B5' d='M10.47 16.47a.75.75 0 0 0 1.06 1.06l4.5-4.5a.75.75 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L14.44 12l-3.97 3.97Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.social-card__controls .swiper-button-prev,
.social-card__controls .swiper-button-next {
    position: static;
    margin: 0;
}

.social-card__controls .swiper-button-prev::after,
.social-card__controls .swiper-button-next::after {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(212, 85%, 30%);
    content: "";
}

.social-card__controls .swiper-button-prev::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%231E64B5' d='M13.53 7.53a.75.75 0 0 0-1.06-1.06l-4.5 4.5a.75.75 0 0 0 0 1.06l4.5 4.5a.75.75 0 1 0 1.06-1.06L9.56 12l3.97-3.97Z'/%3E%3C/svg%3E") center/contain no-repeat;
    width: 22px;
    height: 22px;
    display: block;
}

.social-card__controls .swiper-button-next::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%231E64B5' d='M10.47 16.47a.75.75 0 0 0 1.06 1.06l4.5-4.5a.75.75 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L14.44 12l-3.97 3.97Z'/%3E%3C/svg%3E") center/contain no-repeat;
    width: 22px;
    height: 22px;
    display: block;
}

.social-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.yt-player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#yt-player {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.social-card__caption {
    font-size: 0.95rem;
    color: var(--foreground);
    min-height: 1.2em;
}

.youtube-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
    list-style: none;
    padding-left: 0;
}

.youtube-playlist__item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.95rem;
    color: var(--foreground);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.youtube-playlist__item:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.youtube-playlist__item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.youtube-playlist__item.is-active {
    border-color: hsl(212, 85%, 35%);
    background: hsl(213, 71%, 96%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.youtube-playlist__title {
    font-weight: 600;
    text-align: left;
}

.youtube-playlist__meta {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

@media (max-width: 768px) {
    .youtube-playlist {
        flex-direction: column;
        overflow: visible;
        padding-bottom: 0;
        margin-top: 0.5rem;
        scroll-snap-type: none;
        gap: 0.75rem;
    }

    .youtube-playlist__item {
        flex: 1 1 auto;
        scroll-snap-align: unset;
    }

    .social-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-card__controls {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .social-card {
        padding: 1.25rem;
        box-shadow: var(--shadow-soft);
        border-radius: 14px;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .social-grid {
        gap: 1.25rem;
        justify-items: center;
    }

    .social-card__title {
        font-size: 1.15rem;
    }

    .social-card__subtitle {
        font-size: 0.9rem;
    }

    .yt-player-shell {
        border-radius: 10px;
    }
}

.social-card--linkedin .swiper {
    width: 100%;
}

.social-card--linkedin .swiper-wrapper,
.social-card--linkedin .swiper-slide {
    display: flex;
    height: auto;
}

.social-card--linkedin .linkedin-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.social-card--linkedin .linkedin-viewport {
    position: relative;
    max-height: var(--ln-collapsed, 380px);
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.social-card--linkedin .linkedin-card.is-expanded .linkedin-viewport {
    max-height: var(--ln-full, 700px) !important;
}

.social-card--linkedin .linkedin-embed {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    border: 0;
    min-height: 520px;
    background: #fff;
}

.social-card--linkedin iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.social-card--linkedin .ln-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 70%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-card--linkedin .linkedin-card.is-expanded .ln-fade {
    opacity: 0;
}

.social-card--linkedin .ln-more {
    width: 100%;
    background: #fff;
    border: 0;
    border-top: 1px solid var(--border);
    color: hsl(212, 85%, 30%);
    font-weight: 600;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.social-card--linkedin .ln-more:hover {
    background: var(--surface-muted);
}

.brand-intro .ring-title {
    margin: 2rem 0;
    text-align: center;
}

.brand-intro {
    margin: 2% 0;
}

html {
  scroll-behavior: smooth;
}

button[disabled], .is-disabled {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

.scroll-top-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, hsl(212, 85%, 30%), hsl(217, 85%, 45%));
    color: #fff;
    box-shadow: 0 16px 28px rgba(21, 42, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    z-index: 1100;
}

.scroll-top-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 32px rgba(21, 42, 94, 0.35);
}

.scroll-top-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.scroll-top-btn svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 48px;
        height: 48px;
        right: 1rem;
        bottom: 1.25rem;
    }
}

/* Overlay de carga para login */
#loading-overlay {
    display: none;
    /* Se muestra solo cuando se activa */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    z-index: 10000;
    /* Asegurarse de que esté por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner */
.spinner {
    border: 8px solid #f3f3f3;
    /* Color de fondo del spinner */
    border-top: 8px solid #3498db;
    /* Color del borde superior */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para el contenedor de recuperación de contraseña */
.forgot-password-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--surface-muted);
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.forgot-password-container label {
    display: block;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.forgot-password-container input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    background: var(--input);
    color: var(--foreground);
    font-size: 1rem;
    transition: var(--transition-smooth);
    margin-bottom: 1rem;
}

.forgot-password-container input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(212, 85%, 40%, 0.2);
}

.forgot-password-container .btn {
    width: 100%;
    background: hsl(212, 85%, 30%);
    color: var(--primary-foreground);
    border: none;
    border-radius: calc(var(--radius) - 4px);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.forgot-password-container .btn:hover {
    background: var(--primary-hover);
}

.forgot-password-container .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos para mensajes de error */
.error-message {
    color: var(--destructive);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: hsla(0, 84%, 60%, 0.1);
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid hsla(0, 84%, 60%, 0.2);
}

.field-feedback {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    color: var(--destructive);
}

.partner-item.partner-aelt img {
  width: 250px;
  height: 150px;
}

