/* Importación de tipografía moderna */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --color-primary: #0d47a1;
    --color-primary-dark: #082d6b;
    --color-accent: #ffc107;
    --color-accent-hover: #e0a800;
    --color-bg-light: #f4f7f9;
    --color-text: #333333;
    --color-text-muted: #555555;
    --color-white: #ffffff;
    --color-border: #e5e7eb;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px rgba(13, 71, 161, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --header-height: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- HEADER & LOGO --- */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--header-height);
}

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

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

/* --- HERO CON VÍDEO DE FONDO Y OVERLAY AL 50% --- */
.hero {
    position: relative;
    background-color: #082d6b;
    color: var(--color-white);
    padding: 110px 0 90px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.70) 0%, rgba(21, 101, 192, 0.70) 55%, rgba(255, 193, 7, 0.70) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-content .highlight {
    color: var(--color-accent);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    font-size: clamp(1.08rem, 2.5vw, 1.28rem);
    margin: 0 auto 2.4rem auto;
    max-width: 760px;
    opacity: 0.98;
    line-height: 1.65;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.cta-btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    touch-action: manipulation;
}

.cta-btn:hover,
.cta-btn:focus-visible {
    background: #ffca28;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cta-btn:active {
    transform: translateY(0);
}

/* --- VENTAJAS --- */
.ventajas {
    background: var(--color-bg-light);
    padding: 70px 0;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.ventaja {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2.2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ventaja:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.ventaja .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 1.2rem auto;
    border-radius: 50%;
    background: #fdfaf2;
}

.ventaja h3 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.ventaja p {
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* --- GALERÍA --- */
.galeria {
    background: var(--color-white);
    padding: 75px 0;
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 2.8rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    justify-items: center;
}

.galeria-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    background: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
}

.galeria-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}

.galeria-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Modal Lightbox Táctil */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 62, 0.88);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 2.2rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
}

/* --- TESTIMONIOS --- */
.testimonios {
    background: var(--color-bg-light);
    padding: 70px 0;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    max-width: 950px;
    margin: 0 auto;
}

.testimonios-grid blockquote {
    background: var(--color-white);
    padding: 2.2rem 2rem;
    border-left: 5px solid var(--color-accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonios-grid blockquote p {
    font-style: italic;
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.55;
}

.testimonios-grid cite {
    display: block;
    font-weight: 700;
    text-align: right;
    color: var(--color-primary);
    font-style: normal;
    font-size: 0.95rem;
}

/* --- CARACTERÍSTICAS PRINCIPALES --- */
.caracteristicas {
    background: var(--color-white);
    padding: 75px 0;
}

.caracteristicas-boxgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    max-width: 950px;
    margin: 0 auto;
}

/* Cuando hay un número impar de tarjetas (como la 9ª), centrar la última */
.caracteristicas-boxgrid > .caracteristica-box:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc(50% - 0.9rem);
}

.caracteristica-box {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(13, 71, 161, 0.08);
    padding: 2rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1.5px solid #e3eaf7;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.caracteristica-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.caracteristica-box .icono {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-bg-light);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.08);
}

.caracteristica-txt {
    font-size: 1.08rem;
    color: #1a237e;
    font-weight: 600;
    line-height: 1.45;
}

/* --- CONTACTO CON VÍDEO DE FONDO Y OVERLAY --- */
.contacto {
    position: relative;
    background-color: #082d6b;
    padding: 95px 0 85px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.contacto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.70) 0%, rgba(21, 101, 192, 0.70) 55%, rgba(255, 193, 7, 0.70) 100%);
    z-index: 2;
    pointer-events: none;
}

.contacto-container {
    position: relative;
    z-index: 3;
}

.contacto-centrado {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3.2rem 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.contacto-centrado h2 {
    color: var(--color-primary);
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    margin-bottom: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
}

.contacto-centrado p {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

/* Alertas de Feedback */
.form-alerta {
    display: none;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    text-align: left;
}

.form-alerta.is-visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-alerta-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.form-alerta-error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

/* Formulario */
.contacto-formulario {
    text-align: left;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.45rem;
}

.form-group .required {
    color: #d32f2f;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox LOPD */
.form-checkbox-group {
    margin: 1.4rem 0 1.6rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    user-select: none;
}

.checkbox-container input {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.legal-inline-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.legal-inline-btn:hover {
    color: var(--color-accent-hover);
}

/* Acciones y Botón Submit */
.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.btn-submit {
    width: 100%;
    max-width: 320px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.contacto-divider {
    position: relative;
    text-align: center;
    margin: 2.8rem 0 2rem 0;
}

.contacto-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(13, 71, 161, 0.15);
}

.contacto-divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.8rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 650px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.contacto-datos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contacto-datos li {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--color-bg-light);
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contacto-datos li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-accent);
}

.contacto-datos li strong {
    color: var(--color-primary);
}

.contacto-datos li a {
    color: var(--color-text);
    font-weight: 600;
    transition: color 0.2s ease;
}

.contacto-datos li a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .contacto-centrado {
        padding: 2.2rem 1.2rem;
    }

    .contacto-datos {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .contacto-datos li {
        justify-content: center;
        width: 100%;
        padding: 0.85rem 1.2rem;
    }
}

/* --- FOOTER & ENLACES LEGALES --- */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.6rem 0;
    font-size: 0.95rem;
}

.footer-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-link {
    background: none;
    border: none;
    color: var(--color-accent);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, text-decoration 0.2s ease;
    touch-action: manipulation;
}

.legal-link:hover,
.legal-link:focus-visible {
    text-decoration: underline;
    color: #ffca28;
}

/* --- MODALES LEGALES (ACCESIBLES Y TÁCTILES) --- */
.modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-dialog.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 55, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: var(--color-white);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.modal-dialog.is-active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.8rem;
    border-bottom: 1px solid var(--color-border);
    background: #fbfcfd;
}

.modal-header h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-btn-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    touch-action: manipulation;
}

.modal-btn-close:hover {
    background: #eef2f6;
    color: #000;
}

.modal-body {
    padding: 1.8rem;
    overflow-y: auto;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #374151;
    -webkit-overflow-scrolling: touch;
}

.modal-body h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 1.4rem 0 0.5rem 0;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.4rem;
}

.modal-body li {
    margin-bottom: 0.4rem;
}

.modal-footer {
    padding: 1.1rem 1.8rem;
    border-top: 1px solid var(--color-border);
    background: #fbfcfd;
    display: flex;
    justify-content: flex-end;
}

.btn-modal-close-action {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    touch-action: manipulation;
}

.btn-modal-close-action:hover {
    background: var(--color-primary-dark);
}

/* --- PREFERENCIAS DE COOKIES & TOGGLES TÁCTILES --- */
.cookie-pref-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.cookie-pref-item {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
}

.cookie-pref-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-badge-obligatoria {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    vertical-align: middle;
}

.cookie-pref-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch Táctil Moderno */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s ease;
    border-radius: 34px;
}

.slider-toggle::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked + .slider-toggle {
    background-color: var(--color-primary);
}

.switch-toggle input:checked + .slider-toggle::before {
    transform: translateX(22px);
}

/* --- BANNER DE COOKIES (SENCILLO, ELEGANTE Y TÁCTIL) --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 2px solid var(--color-accent);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9990;
    padding: 1.1rem 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

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

.cookie-content p {
    font-size: 0.93rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    background: none;
    border: none;
    color: var(--color-primary);
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.cookie-btn-accept:hover {
    background: var(--color-primary-dark);
}

.cookie-btn-reject {
    background: transparent;
    color: #4b5563;
    border: 1px solid var(--color-border);
}

.cookie-btn-reject:hover {
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }
}

/* --- RESPONSIVE ADAPTATIVO & TÁCTIL --- */
@media (max-width: 900px) {
    .caracteristicas-boxgrid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .caracteristicas-boxgrid > .caracteristica-box:last-child:nth-child(odd) {
        max-width: 100%;
    }
    
    .contacto-flex {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }

    .hero {
        padding: 60px 0 50px 0;
    }

    .contacto-form {
        padding: 1.6rem 1.2rem;
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
    }
}
