/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1e3a5f;
    --color-secondary: #2d5aa0;
    --color-accent: #2563eb;
    --color-text: #1e293b;
    --color-text-light: #475569;
    --color-bg: #f0f4f8;
    --color-white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(37, 99, 235, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image: linear-gradient(135deg, #f0f4f8 0%, #e8f2ff 100%);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Navegación */
.navbar {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--color-accent);
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero .btn {
    position: relative;
    z-index: 2;
}

.hero-home {
    background-image: url('../images/Imagenes Pagina/5866230096144829318.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(45, 90, 160, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.section-white {
    background-color: var(--color-white);
}

.about-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-text {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-btn {
    margin-top: 1rem;
    display: inline-block;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

/* Secciones */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* Grid de Productos/Galería */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 250px;
    background-color: #e3ebf5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
    line-height: 1.25;
}

.btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    background-color: #e3ebf5;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Opiniones */
.opinion-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.opinion-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--color-accent);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.2;
}

.opinion-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.opinion-author {
    font-weight: 600;
    color: var(--color-primary);
}

.opinion-rating {
    color: #3b82f6;
    margin-top: 0.5rem;
}

.opiniones-empty {
    text-align: center;
    color: var(--color-text-light);
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Estados de carga (galería y opiniones) */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-light);
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-skeleton,
.opinion-skeleton {
    background: linear-gradient(
        90deg,
        #e8edf2 0%,
        #f4f6f8 50%,
        #e8edf2 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}

.gallery-skeleton {
    aspect-ratio: 4 / 3;
    min-height: 140px;
}

.opinion-skeleton {
    min-height: 180px;
    border: 1px solid var(--color-border);
}

.gallery-grid-preview {
    margin-bottom: 0;
}

.is-loading .gallery-item,
.is-loading .opinion-card {
    pointer-events: none;
}

/* Página 404 */
.error-page {
    text-align: center;
    padding: 4rem 1.5rem;
}

.error-page .error-code {
    font-size: clamp(4rem, 15vw, 7rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin: 0 0 1rem;
}

.error-page h1 {
    margin-bottom: 0.75rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer pegado al fondo */
body.page-sticky-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-sticky-footer .site-main {
    flex: 1;
}

body.page-sticky-footer .footer {
    margin-top: auto;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    max-width: 360px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background-color: #16a34a;
}

.toast-error {
    background-color: #dc2626;
}

/* Lightbox galería */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Grid sobre nosotros */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tabla fichas responsive */
.specs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Contenido legal */
.legal-content h3 {
    color: var(--color-primary);
    margin: 2rem 0 1rem;
}

.legal-content p,
.legal-content ul {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content h4 {
    margin: 1.25rem 0 0.5rem;
    color: var(--color-primary);
    font-size: 1.05rem;
}

.footer-legal {
    line-height: 1.6;
}

.footer-legal a {
    color: #93c5fd;
}

/* Banner cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9999;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 220px;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-banner a {
    color: #93c5fd;
}

.cookie-banner .btn {
    flex-shrink: 0;
    background: white;
    color: var(--color-primary);
    border: none;
    margin: 0;
}

.cookie-banner .btn-cookie-reject {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.map-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    padding: 2rem;
    background: var(--color-bg-light, #f4f6f8);
    border-radius: 10px;
    box-shadow: var(--shadow);
    gap: 1rem;
}

.map-consent-placeholder p {
    margin: 0;
    color: var(--color-text-light);
    max-width: 420px;
    line-height: 1.6;
}

.map-consent-links {
    font-size: 0.9rem;
}

/* Sección opiniones inicio */
.link-accent {
    color: var(--color-accent);
}

.text-muted {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.form-title {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.form-checkbox input {
    width: auto;
}

.info-note p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.section-compact {
    padding-top: 0;
}

.specs-title {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.specs-cta {
    text-align: center;
    margin-top: 2rem;
}

.opiniones-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Botones flotantes WhatsApp / Llamada */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.floating-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex-shrink: 0;
}

.floating-text {
    display: none;
}

.floating-whatsapp {
    background-color: #25d366;
}

.floating-call {
    background-color: var(--color-accent);
}

.floating-label {
    position: absolute;
    right: calc(100% + 12px);
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow);
}

.floating-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-primary);
}

.floating-btn:hover .floating-label,
.floating-btn:focus .floating-label {
    opacity: 1;
    transform: translateX(0);
}

/* Evitar solapamiento con banner de cookies (escritorio) */
body:has(.cookie-banner) .floating-contact {
    bottom: 90px;
}

/* Fichas técnicas — catálogo por categorías */
.fichas-catalog {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.fichas-group-header {
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
}

.fichas-group--andalucia .fichas-group-header {
    border-left-color: #d97706;
}

.fichas-group--especial .fichas-group-header {
    border-left-color: #059669;
}

.fichas-group-title {
    color: var(--color-primary);
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.fichas-group-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.fichas-group-tiles {
    display: grid;
    gap: 1rem;
}

.fichas-group--precomar .fichas-group-tiles {
    grid-template-columns: repeat(2, 1fr);
}

.fichas-group--andalucia .fichas-group-tiles {
    grid-template-columns: repeat(2, 1fr);
}

.fichas-group--especial .fichas-group-tiles {
    grid-template-columns: 1fr;
    max-width: 520px;
}

.ficha-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow);
    -webkit-tap-highlight-color: transparent;
}

.ficha-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.ficha-tile:active {
    transform: scale(0.99);
}

.ficha-tile-visual {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--color-accent);
}

.ficha-tile--andalucia .ficha-tile-visual {
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
    color: #b45309;
}

.ficha-tile--especial .ficha-tile-visual {
    background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
    color: #059669;
}

.ficha-tile-content {
    flex: 1;
    min-width: 0;
}

.ficha-tile-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: #eff6ff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.ficha-tile--andalucia .ficha-tile-tag {
    color: #b45309;
    background: #fffbeb;
}

.ficha-tile--especial .ficha-tile-tag {
    color: #059669;
    background: #ecfdf5;
}

.ficha-tile-name {
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.ficha-tile-desc {
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ficha-tile-action {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ficha-tile:hover .ficha-tile-action {
    background: var(--color-accent);
    color: var(--color-white);
}

.fichas-info {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--color-text-light);
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.ficha-tile--consulta .ficha-tile-tag {
    background-color: #fef3c7;
    color: #92400e;
}

.ficha-tile-note {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #92400e;
    font-weight: 500;
}

.ficha-unavailable-notice {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.ficha-unavailable-notice p {
    margin: 0;
    color: #78350f;
    line-height: 1.55;
    font-size: 0.95rem;
}

.ficha-consulta-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.ficha-consulta-success .download-title {
    color: #166534;
}

.ficha-consulta-success .download-text {
    color: #15803d;
}

.modal-intro {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-section {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #e8f2ff;
    border-radius: 10px;
    text-align: center;
}

.download-title {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.download-text {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.pdf-preview-wrap {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.pdf-preview {
    display: block;
    width: 100%;
    height: min(55vh, 480px);
    border: 0;
    background: #fff;
}

.pdf-preview-unavailable {
    margin: 0;
    padding: 2rem 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-content--preview {
    max-width: 920px;
    max-height: 92vh;
    overflow-y: auto;
}

.modal-content--preview .download-section {
    text-align: left;
}

.pdf-mobile-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 220px;
    padding: 1.5rem 1rem;
    text-align: center;
}

.pdf-mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #e8f2ff;
    color: var(--color-primary);
}

.pdf-mobile-text {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 320px;
}

/* Fichas Técnicas (tablas legacy) */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.specs-table th {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.specs-table tr:hover {
    background-color: #e8f2ff;
}

.product-specs {
    margin-bottom: 3rem;
}

.product-specs h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Mapa */
.map-container {
    width: 100%;
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Pestañas (Tabs) */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tab-btn.active {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
}

.tab-content.active-tab {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-white);
    margin: auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    color: var(--color-text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: var(--transition);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
    transform: scale(1.2);
}

/* ============================================================
   EXPERIENCIA MÓVIL
   ============================================================ */
@media (max-width: 768px) {

    .container {
        padding: 0 1.25rem;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .logo img {
        height: 48px;
    }

    .hamburger {
        display: flex;
        padding: 10px;
        margin: -10px;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 5rem 1.5rem 2rem;
        box-shadow: none;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.15rem;
        min-height: 52px;
        line-height: 1.4;
        border-radius: 10px;
    }

    .nav-menu a.active {
        background-color: #eff6ff;
    }

    .nav-menu a::after {
        display: none;
    }

    .hero {
        padding: 3.5rem 1.25rem;
        min-height: 55dvh;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .about-image {
        height: 240px;
        order: -1;
    }

    .about-title {
        font-size: 1.4rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    .card-btn,
    .contact-form .btn,
    .specs-cta .btn,
    .fichas-group--precomar .fichas-group-tiles,
    .fichas-group--andalucia .fichas-group-tiles {
        grid-template-columns: 1fr;
    }

    .fichas-group--especial .fichas-group-tiles {
        max-width: none;
    }

    .ficha-tile {
        padding: 1rem;
    }

    .ficha-tile-desc {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ficha-tile:hover {
        transform: none;
    }

    .ficha-tile:active {
        border-color: var(--color-accent);
        background: #f8fafc;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .gallery-item:hover {
        transform: none;
    }

    .opinion-card {
        padding: 1.5rem;
    }

    .opinion-card::before {
        font-size: 3.5rem;
        top: 5px;
        left: 12px;
    }

    .tabs-container {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .tab-btn {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .specs-table thead {
        display: none;
    }

    .specs-table,
    .specs-table tbody,
    .specs-table tr,
    .specs-table td {
        display: block;
        width: 100%;
    }

    .specs-table tr {
        margin-bottom: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        background: var(--color-white);
    }

    .specs-table td {
        padding: 0.75rem 1rem;
        border-bottom: none;
        text-align: left;
    }

    .specs-table td:first-child {
        background-color: #f1f5f9;
        font-weight: 600;
        color: var(--color-primary);
        font-size: 0.85rem;
        padding-bottom: 0.35rem;
    }

    .specs-table td:last-child {
        padding-top: 0.35rem;
        font-size: 0.95rem;
    }

    .specs-table tr:hover {
        background-color: transparent;
    }

    .product-specs {
        margin-bottom: 2rem;
    }

    .specs-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.25rem;
    }

    .info-item h3 {
        font-size: 1.05rem;
    }

    .map-container iframe {
        height: 280px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 0.875rem 1rem;
        min-height: 48px;
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .modal {
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 92dvh;
        overflow-y: auto;
        padding: 1.5rem 1.25rem 2rem;
        animation: modalSlideUp 0.35s ease;
    }

    @keyframes modalSlideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .modal-close {
        font-size: 2.25rem;
        padding: 0.5rem;
        right: 0.75rem;
        top: 0.5rem;
    }

    .modal-content--preview {
        max-height: 96dvh;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    }

    .modal-content--preview .download-section {
        padding: 1rem 0 0;
        background: transparent;
    }

    .pdf-preview {
        height: min(42vh, 320px);
    }

    .pdf-mobile-viewer {
        min-height: 180px;
        padding: 1rem 0.5rem;
    }

    .download-actions .btn {
        min-height: 48px;
    }

    .footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem 1.25rem;
        bottom: calc(56px + env(safe-area-inset-bottom));
    }

    .cookie-banner .btn {
        width: 100%;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: calc(72px + env(safe-area-inset-bottom));
    }

    body.has-contact-bar {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    .floating-contact {
        bottom: 0;
        left: 0;
        right: 0;
        flex-direction: row;
        gap: 0;
        align-items: stretch;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    .floating-btn {
        flex: 1;
        width: auto;
        height: auto;
        min-height: 56px;
        border-radius: 0;
        flex-direction: row;
        gap: 10px;
        font-size: 1rem;
        font-weight: 600;
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    .floating-btn:hover {
        transform: none;
    }

    .floating-btn:active {
        filter: brightness(0.92);
    }

    .floating-text {
        display: inline;
    }

    .floating-label {
        display: none;
    }

    .floating-btn svg {
        width: 22px;
        height: 22px;
    }

    body:has(.cookie-banner) .floating-contact {
        bottom: 0;
    }

    .card:hover {
        transform: none;
    }
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}

