/* ==========================================================================
   DAMIMAC - ESTILOS GLOBALES (VERSIÓN 3.0 FINAL)
   ========================================================================== */

:root {
    --rojo: #e31d1a;
    --azul: #0055ff;
    --oro: #f1b400;
    --fondo: #0f0f0f;
    --gris: #1a1a1a;
    --texto: #f5f5f5;
}

* {
    box-sizing: border-box; /* Crucial para que nada se salga del ancho en móvil */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--fondo);
    color: var(--texto);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prohibido el movimiento lateral */
}

/* --- NAVEGACIÓN --- */
nav {
    background: rgba(0,0,0,0.9);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--oro);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo-img { height: 60px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--azul); }

/* --- ANIMACIONES --- */
@keyframes aparecer {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fondo común de Inicio + Algunas de mis costuras */
.inicio-fondo {
    background:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('img/foto-mia-2-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- SECCIONES CON PARALLAX --- */
.hero { 
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.hero-content {
    display: flex;
    flex-direction: column; /* Esto obliga a que el texto vaya uno debajo del otro */
    align-items: center;
    width: 100%;
}

.hero h1 { 
    font-size: 3rem; 
    margin: 0 0 15px 0; /* Margen abajo para separar del párrafo */
    width: 100%; /* Ocupa todo el ancho */
    display: block;
    animation: aparecer 1.2s ease-out; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.brand-gold { color: var(--oro); }

.hero p { 
    font-size: 1.2rem; 
    margin: 0;
    width: 100%; /* Ocupa todo el ancho */
    display: block;
    animation: aparecer 1.2s ease-out 0.4s forwards; 
    opacity: 0; 
}

#proyectos {
    background: linear-gradient(rgba(15, 15, 15, 0.7), rgba(15, 15, 15, 0.7)), url('img/estuches.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#sobre-mi {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('img/fondo-sobre-mi.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-padding { padding: 80px 5%; }
.section-title { 
    text-align: center; 
    color: var(--oro); 
    margin-bottom: 40px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

.container-small { max-width: 800px; margin: auto; line-height: 1.8; font-size: 1.1rem; }

/* --- GALERÍA Y FILTROS --- */
.filtros { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    margin-bottom: 40px; 
}

.btn { 
    background: #333; 
    color: white; 
    border: none; 
    padding: 10px 25px; 
    border-radius: 25px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-weight: bold; 
}

.btn.active, .btn:hover { background: var(--rojo); }

.galeria { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
}

.item { 
    position: relative;
    background: var(--gris); 
    border-radius: 10px; 
    overflow: hidden; 
    cursor: pointer; 
    border: 1px solid #333; 
    transition: 0.3s; 
}

.item:hover { transform: scale(1.03); border-color: var(--oro); }
.item img { width: 100%; height: 280px; object-fit: cover; }

.overlay { padding: 15px; text-align: center; background: var(--gris); }

/* --- FORMULARIO DE CONTACTO --- */
.formulario-contacto { display: flex; flex-direction: column; gap: 15px; }
.formulario-contacto input, .formulario-contacto select, .formulario-contacto textarea { 
    padding: 15px; background: #222; border: 1px solid #444; color: white; border-radius: 5px; 
}
.btn-submit { 
    background: var(--azul); color: white; border: none; padding: 15px; cursor: pointer; font-weight: bold; 
}

/* --- VISOR 3.0 (EL MODAL TÉCNICO) --- */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.98); 
    overflow-y: auto; /* Permite scroll si el contenido es más alto que la pantalla */
    -webkit-overflow-scrolling: touch;
}

.modal-wrapper { 
    display: flex; 
    width: 90%; 
    max-width: 1100px; 
    min-height: 85vh; /* Cambiado de height a min-height */
    background: #111; 
    margin: 5vh auto; 
    border-radius: 10px; 
    position: relative; 
    border: 1px solid #333;
    /* Quitamos el overflow: hidden que cortaba el texto */
}

.cerrar { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 40px; 
    color: var(--oro); 
    cursor: pointer; 
    z-index: 2300; 
    line-height: 1;
}

.modal-media { 
    flex: 1.5; 
    background: #000; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 20px;
    position: relative;
}

.modal-media img { max-width: 100%; max-height: 100%; object-fit: contain; }

.modal-info { 
    flex: 1; 
    padding: 40px; 
    overflow-y: auto; 
    background: #181818; 
    border-left: 1px solid #333;
}

.modal-info h2 { color: var(--oro); margin-top: 0; }
.modal-info h3 { color: var(--azul); border-bottom: 1px solid #333; padding-bottom: 5px; margin-top: 25px; }
.modal-info ul { list-style: none; padding: 0; }
.modal-info li { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.4; }

.btn-tutorial { 
    color: var(--oro); font-weight: bold; text-decoration: none; border: 1px solid var(--oro); 
    padding: 8px 15px; border-radius: 5px; display: inline-block; margin-top: 10px; transition: 0.3s;
}
.btn-tutorial:hover { background: var(--oro); color: black; }

.controles { margin-top: 15px; display: flex; gap: 20px; }
.controles button { 
    background: var(--oro); border: none; padding: 10px 20px; cursor: pointer; border-radius: 5px; font-weight: bold; 
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 900px) {
    .nav-container { flex-direction: column; gap: 10px; }
    .nav-links a {display:block; text-align:center; }
    .hero h1 { font-size: 2rem; }
    .hero, #proyectos, #mi-taller, #sobre-mi { background-attachment: scroll; } /* Desactiva parallax en móvil para evitar tirones */

    .modal { 
        display: none; 
        position: fixed; 
        z-index: 2000; 
        left: 0; 
        top: 0; 
        width: 100%; 
        height: 100%; 
        background: rgba(0,0,0,0.98); 
        overflow-y: scroll !important; /* FORZAMOS el scroll vertical */
        -webkit-overflow-scrolling: touch; /* Suaviza el scroll en iPhones */
    }

    .modal-wrapper { 
        flex-direction: column; 
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .modal-media { 
        width: 100%;
        height: auto;
        padding-top: 80px; /* Espacio para que la X no tape la foto */
    }

    .modal-info {
        overflow: visible; /* Importante para que el scroll lo lleve el modal principal */
        height: auto;
    }

    .cerrar {
        position: fixed; /* La X se queda quieta mientras tú subes y bajas el texto */
        top: 15px;
        right: 15px;
        background: var(--rojo); /* Le ponemos el rojo de tu marca para que resalte */
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }
}

footer { 
    text-align: center; padding: 40px 0; background: #000; border-top: 1px solid #222; font-size: 0.9rem;
}
.legal-links a { color: #888; text-decoration: none; margin: 0 5px; }
/* ========================================================================== 
   MI TALLER
   ========================================================================== */
#mi-taller { background:#f4eadf; color:#2d211c; }
.taller-hero {
    min-height: 520px; display:flex; align-items:center; justify-content:center; text-align:center;
    background: linear-gradient(rgba(28,12,4,.40),rgba(28,12,4,.48)), url('img/taller/fondo-mi-taller.jpg');
    background-size:cover; background-position:center; background-attachment:fixed;
}
.taller-hero-texto { padding:40px 20px; text-shadow:0 2px 10px rgba(0,0,0,.65); color:#fff8ef; }
.taller-hero h2 { font-size:clamp(3.3rem,8vw,7rem); letter-spacing:.08em; margin:0; line-height:1; }
.taller-hero p { font-family:Georgia,serif; font-style:italic; font-size:clamp(1.05rem,2vw,1.55rem); line-height:1.5; }
.taller-corazon { display:block; color:#b63d4b; font-size:2.5rem; }
.taller-contenido { max-width:1450px; margin:auto; padding:14px 4% 45px; }
.taller-titulo { display:flex; align-items:center; gap:14px; text-transform:uppercase; justify-content:center; margin:0 0 20px; font-size:1.45rem; color:#3a251e; }
.taller-titulo:before,.taller-titulo:after { content:""; width:85px; border-top:3px dashed #b64b58; }
.maquinas-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.maquina-card { background:#fff9f3; border:1px solid #dca4a0; border-radius:28px; overflow:hidden; box-shadow:0 6px 15px rgba(76,37,24,.15); display:flex; flex-direction:column; }
.maquina-foto { height:280px; background:#ead9c9; position:relative; overflow:hidden; }
.maquina-foto img { width:100%; height:100%; object-fit:contain; background:#f2e9df; }
.maquina-video-badge span { position:absolute; right:18px; top:18px; width:78px; height:78px; border-radius:50%; background:#9f3543; color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:1.4rem; border:2px solid #f3c9c3; box-shadow:0 2px 8px #5a252588; }
.maquina-video-badge small { font-size:.62rem; letter-spacing:.08em; margin-top:3px; text-align:center; width:100%;}
.maquina-info { text-align:center; padding:15px 22px 20px; flex:1; display:flex; flex-direction:column; align-items:center; }
.maquina-info h4 { color:#a33b46; font:italic 1.65rem Georgia,serif; margin:0 0 5px; }
.maquina-info strong { font-family:Georgia,serif; }
.maquina-info p { line-height:1.5; margin:10px 0 15px; flex:1; }
.taller-btn { border:0; border-radius:8px; background:#9f3543; color:#fff; text-transform:uppercase; font-weight:700; padding:10px 24px; cursor:pointer; transition:.25s; }
.taller-btn:hover { transform:translateY(-2px); background:#7f2834; }
.herramientas-titulo { margin-top:28px; }
.herramientas-grid { display:grid; grid-template-columns:repeat(8,1fr); gap:12px; }
.herramienta { min-height:115px; border-radius:12px; overflow:hidden; background:linear-gradient(#e8d1bb,#c49a7d); display:flex; flex-direction:column; justify-content:flex-end; text-align:center; box-shadow:0 3px 8px #0002; }
.herramienta b { font-size:2.5rem; flex:1; display:grid; place-items:center; color:#55362b; }
.herramienta span { background:#9f3543; color:white; text-transform:uppercase; font-size:.78rem; padding:7px 3px; font-weight:bold; }
.taller-frase { max-width:1000px; margin:20px auto 0; background:#a63d49; color:#fff7ef; padding:10px 25px; text-align:center; font:italic 1.15rem Georgia,serif; border-radius:4px; }
.modal-maquina { align-items:center; justify-content:center; }
.maquina-modal-card { width:min(1000px,92vw); max-height:88vh; overflow:auto; background:#f7eee5; color:#2d211c; border-radius:18px; display:grid; grid-template-columns:1fr 1fr; box-shadow:0 15px 50px #000b; }
.maquina-modal-media { min-height:430px; background:#fff; display:grid; place-items:center; }
.maquina-modal-media img { width:100%; height:100%; max-height:620px; object-fit:contain; }
.maquina-modal-info { padding:38px; }
.maquina-modal-info h2 { color:#9f3543; font:italic 2rem Georgia,serif; margin-top:0; }
.maquina-modal-tipo { font-weight:bold; }
.maquina-modal-info p { line-height:1.65; }
.maquina-modal-video { margin-top:22px; }
.maquina-modal-video[hidden] { display:none; }
.maquina-videos { border-top:1px solid #d9b8aa; padding-top:18px; }
.video-encabezado { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:12px; }
.video-encabezado h3 { margin:2px 0 4px; color:#3a251e; font:italic 1.35rem Georgia,serif; }
.video-encabezado p { margin:0; font-size:.92rem; color:#654d43; }
.video-kicker { display:inline-block; color:#9f3543; font-size:.72rem; font-weight:800; letter-spacing:.12em; }
.video-selector { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.video-chip { border:1px solid #b86b72; background:#fff9f3; color:#7f2834; border-radius:999px; padding:7px 13px; cursor:pointer; font-weight:700; transition:.2s; }
.video-chip:hover,.video-chip.active { background:#9f3543; color:#fff; }
.video-player-wrap { width:min(100%,330px); margin:0 auto; }
.video-player-wrap iframe { display:block; width:100%; aspect-ratio:9/16; max-height:560px; border:0; border-radius:14px; background:#000; box-shadow:0 5px 16px #0003; }
.video-player-playlist { width:100%; }
.video-player-playlist iframe { aspect-ratio:16/9; max-height:none; }
.playlist-btn,.volver-videos-btn { border:1px solid #9f3543; background:transparent; color:#8c303c; border-radius:8px; padding:9px 14px; font-weight:700; cursor:pointer; }
.playlist-btn { display:block; width:100%; margin-top:14px; }
.playlist-btn:hover,.volver-videos-btn:hover { background:#9f3543; color:#fff; }
@media (max-width:900px) {
    .taller-hero { min-height:430px; background-attachment:scroll; }
    .maquinas-grid { grid-template-columns:1fr; max-width:620px; margin:auto; }
    .herramientas-grid { grid-template-columns:repeat(4,1fr); }
    .maquina-modal-card { grid-template-columns:1fr; }
    .maquina-modal-media { min-height:280px; }
}
@media (max-width:600px) {
    .herramientas-grid { grid-template-columns:repeat(2,1fr); }
    .taller-hero { background-position:center; }
    .taller-titulo:before,.taller-titulo:after { width:25px; }
    .maquina-foto { height:235px; }
}

/* ========================================================================== 
   CONTACTO - fondo visual
   ========================================================================== */
#contacto {
    position: relative;
    background:
        linear-gradient(rgba(15, 15, 15, .52), rgba(15, 15, 15, .62)),
        url('img/contacto.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#contacto .container-small {
    background: rgba(12, 12, 12, .82);
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 12px 35px rgba(0,0,0,.38);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
#contacto .section-title {
    margin-top: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
#contacto .formulario-contacto input,
#contacto .formulario-contacto select,
#contacto .formulario-contacto textarea {
    background: rgba(20,20,20,.90);
    border-color: rgba(255,255,255,.28);
}
#contacto .formulario-contacto input:focus,
#contacto .formulario-contacto select:focus,
#contacto .formulario-contacto textarea:focus {
    outline: 2px solid var(--oro);
    outline-offset: 1px;
}
@media (max-width: 900px) {
    #contacto { background-attachment: scroll; }
}
@media (max-width: 600px) {
    #contacto { background-position: 58% center; }
    #contacto .container-small {
        padding: 24px 18px;
        border-radius: 14px;
    }
}

/* V2.2 - Multimedia dinámica de Mi Taller */
.multimedia-tabs { display:flex; gap:8px; margin:20px 0 14px; border-bottom:1px solid #d9b8aa; padding-bottom:8px; }
.multimedia-tab { border:0; background:transparent; color:#6e4a40; padding:8px 12px; border-radius:8px 8px 0 0; cursor:pointer; font-weight:800; }
.multimedia-tab:hover,.multimedia-tab.active { background:#9f3543; color:#fff; }
.multimedia-kicker { margin:0 0 10px; color:#9f3543; font-size:.72rem; font-weight:800; letter-spacing:.12em; }
.maquina-fotos-panel { padding-top:4px; }
.maquina-miniaturas { display:flex; flex-wrap:wrap; gap:10px; }
.maquina-miniatura { width:78px; height:78px; padding:3px; border:2px solid transparent; border-radius:10px; background:#fff; cursor:pointer; overflow:hidden; }
.maquina-miniatura.active,.maquina-miniatura:hover { border-color:#9f3543; }
.maquina-miniatura img { width:100%; height:100%; object-fit:cover; border-radius:6px; }
@media (max-width:600px) {
  .multimedia-tabs { position:sticky; top:0; background:#f7eee5; z-index:2; }
  .multimedia-tab { flex:1; font-size:.88rem; padding:9px 6px; }
}


/* V2.3.1 - Galería y vídeo dinámicos */
.maquina-modal-media {
    position: relative;
    overflow: hidden;
    align-self: start;
    min-height: 0;
    height: auto;
}
.maquina-modal-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    display: block;
}
.maquina-foto-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(159,53,67,.88);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 3px 12px rgba(0,0,0,.28);
}
.maquina-foto-nav[hidden], .maquina-foto-contador[hidden] { display:none !important; }
.maquina-foto-nav.anterior { left: 14px; }
.maquina-foto-nav.siguiente { right: 14px; }
.maquina-foto-nav:hover { background: #7f2834; }
.maquina-foto-contador {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    z-index: 3;
}
.video-player-wrap { margin: 0 auto; }
.video-player-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 5px 16px #0003;
}
.video-player-wrap.video-vertical {
    width: min(100%, 310px);
    aspect-ratio: 9 / 16;
}
.video-player-wrap.video-horizontal {
    width: 100%;
    aspect-ratio: 16 / 9;
}
@media (max-width:900px) {
    .maquina-modal-media { height: min(520px, 62vh); min-height:280px; }
}
@media (max-width:600px) {
    .maquina-modal-media { height: min(430px, 55vh); }
    .maquina-foto-nav { width:40px; height:40px; }
    .maquina-foto-nav.anterior { left:8px; }
    .maquina-foto-nav.siguiente { right:8px; }
    .maquina-foto-contador { right:8px; bottom:8px; }
}

/* ========================================================================== 
   MI TALLER · ENTRE TELAS, HILOS Y HERRAMIENTAS · V2.4
   ========================================================================== */
.herramienta { border:0; padding:0; font:inherit; cursor:pointer; color:inherit; transition:.22s; }
.herramienta:hover,.herramienta.activa { transform:translateY(-3px); box-shadow:0 7px 16px #0003; }
.herramienta.activa span { background:#7f2834; }
.detalle-herramientas[hidden] { display:none; }
.detalle-herramientas { margin:26px auto 8px; background:#fff9f3; border:1px solid #dca4a0; border-radius:24px; overflow:hidden; box-shadow:0 8px 22px rgba(76,37,24,.15); }
.detalle-herramientas-cabecera { padding:24px 30px 18px; text-align:center; border-bottom:1px solid #e4c5b8; }
.detalle-herramientas-cabecera h4 { margin:0 0 8px; color:#a33b46; font:italic 2rem Georgia,serif; }
.detalle-herramientas-cabecera p { max-width:980px; margin:0 auto; line-height:1.6; }
.detalle-elementos { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; padding:16px 22px 0; }
.detalle-elemento-btn { border:1px solid #b86b72; background:#fff; color:#7f2834; border-radius:999px; padding:7px 13px; cursor:pointer; font-weight:700; }
.detalle-elemento-btn:hover,.detalle-elemento-btn.activo { background:#9f3543; color:#fff; }
.detalle-visor { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); min-height:430px; }
.detalle-media { background:#f2e9df; padding:22px; display:flex; flex-direction:column; min-width:0; }
.detalle-foto-wrap { position:relative; flex:1; min-height:350px; display:grid; place-items:center; background:#fff; border-radius:14px; overflow:hidden; }
.detalle-foto-wrap img { width:100%; height:100%; max-height:560px; object-fit:contain; }
.detalle-flecha { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border:0; border-radius:50%; background:#a93645e8; color:#fff; font-size:1.55rem; cursor:pointer; box-shadow:0 3px 9px #0004; }
.detalle-flecha.anterior { left:12px; }
.detalle-flecha.siguiente { right:12px; }
.detalle-contador { position:absolute; right:12px; bottom:12px; background:#241812dd; color:#fff; border-radius:999px; padding:6px 10px; font-weight:700; }
.detalle-miniaturas { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:12px; }
.detalle-miniatura { width:72px; height:58px; border:2px solid transparent; border-radius:9px; padding:2px; background:#fff; cursor:pointer; overflow:hidden; }
.detalle-miniatura.activa { border-color:#a93645; }
.detalle-miniatura img { width:100%; height:100%; object-fit:contain; }
.detalle-texto { padding:34px; display:flex; flex-direction:column; justify-content:center; }
.detalle-texto h5 { color:#9f3543; font:italic 1.7rem Georgia,serif; margin:0 0 15px; }
.detalle-texto p { margin:0; line-height:1.7; }
.detalle-texto-vacio { display:none; }
@media (max-width:900px) {
    .detalle-visor { grid-template-columns:1fr; }
    .detalle-media { padding:14px; }
    .detalle-foto-wrap { min-height:300px; }
    .detalle-texto { padding:24px 22px 28px; text-align:center; }
    .detalle-herramientas-cabecera { padding:20px 18px 15px; }
}
@media (max-width:600px) {
    .detalle-foto-wrap { min-height:260px; }
    .detalle-miniatura { width:58px; height:48px; }
    .detalle-flecha { width:40px; height:40px; }
}

/* =========================================================
   NOVEDADES
   ========================================================= */

.novedades-section {
    background-image:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('img/fondo-novedades.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.novedades-contenedor {
    max-width: 1100px;
    margin: 0 auto;
}


/* ---------- ÚLTIMA INCORPORACIÓN ---------- */

.ultima-incorporacion-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    max-width: 950px;
    margin: 0 auto 50px;
    background: var(--gris);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ultima-incorporacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.ultima-incorporacion-imagen {
    position: relative;
    min-height: 360px;
}

.ultima-incorporacion-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ultima-incorporacion-info {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.novedad-etiqueta {
    display: inline-block;
    align-self: flex-start;
    background: var(--rojo);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 7px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.ultima-incorporacion-info h3 {
    font-size: 2rem;
    margin: 0 0 12px;
    color: var(--texto);
}

.ultima-incorporacion-info p {
    color: #cfcfcf;
    margin: 0 0 28px;
}

.novedad-ver {
    color: var(--oro);
    font-weight: 600;
}


/* ---------- LISTADO DE NOVEDADES ---------- */

.novedades-listado {
    margin-top: 20px;
}

.novedades-listado h3 {
    text-align: center;
    margin-bottom: 25px;
}

/* ---------- TARJETAS DE NOVEDADES ---------- */

#contenedor-novedades {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.novedad-card {
    background: var(--gris);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.novedad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.novedad-card-imagen {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.novedad-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.novedad-card-info {
    padding: 18px;
}

.novedad-card-etiqueta {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--oro);
}

.novedad-card-info h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--texto);
}

.novedad-card-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #bdbdbd;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 700px) {
    .novedades-section {
        padding: 50px 15px;
        background-attachment: scroll;
    }

    .ultima-incorporacion-card {
        grid-template-columns: 1fr;
    }

    .ultima-incorporacion-imagen {
        min-height: 0;
    }

    .ultima-incorporacion-imagen img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .ultima-incorporacion-info {
        padding: 28px 24px;
    }

    .ultima-incorporacion-info h3 {
        font-size: 1.55rem;
    }
    
    #contenedor-novedades {
        grid-template-columns: 1fr;
        max-width: 430px;
    }
    
    .novedad-card {
        display: grid;
        grid-template-columns: 130px 1fr;
    }
    
    .novedad-card-imagen {
        aspect-ratio: auto;
        min-height: 130px;
    }
    
    .novedad-card-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 0.82rem;
    }
}

/* =========================================================
   VÍDEO PROPIO EN FICHA DE PROYECTO
   ========================================================= */

.video-proyecto {
    margin-top: 20px;
}

#modal-video-proyecto-contenido {
    width: 100%;
}

#modal-video-proyecto-contenido iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
}

/* =========================================================
   DISTINTIVO INCLUIDO VÍDEO
   ========================================================= */

.incluido-video {
    position: absolute;
    right: 18px;
    top: 18px;

    width: 78px;
    height: 78px;
    border-radius: 50%;

    background: #9f3543;
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-size: 1.4rem;

    border: 2px solid #f3c9c3;
    box-shadow: 0 2px 8px #5a252588;

    z-index: 3;
}

.incluido-video small {
    font-size: .62rem;
    letter-spacing: .08em;
    margin-top: 3px;
    text-align: center;
    width: 100%;
}

/* Distintivo reducido en tarjetas de Últimas novedades */
.novedad-card-imagen .incluido-video {
    width: 58px;
    height: 58px;
    top: 10px;
    right: 10px;
    font-size: 1rem;
}

.novedad-card-imagen .incluido-video small {
    font-size: .48rem;
    letter-spacing: .05em;
    margin-top: 2px;
}

/* =========================================
   TELEVISIÓN DAMIMAC - VÍDEOS PROPIOS
   ========================================= */

.television-damimac {
    width: 100%;
    max-width: 480px;
    margin: 20px auto 14px;
    padding: 10px;

    background: linear-gradient(
        135deg,
        #777,
        #292929 35%,
        #555 70%,
        #999
    );

    border: 2px solid #777;
    border-radius: 12px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);

    box-sizing: border-box;
}

#boton-video-damimac {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;

    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 15px;

    background: #050505;
    color: #ffbf00;

    border: 2px solid #111;
    border-radius: 5px;

    font-size: 17px;
    font-weight: bold;
    text-align: center;

    cursor: pointer;
    box-sizing: border-box;
}

.television-play {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    background: #ffbf00;
    color: #111;

    border-radius: 50%;
    font-size: 29px;

    transition: transform 0.2s ease;
}

#boton-video-damimac:hover .television-play {
    transform: scale(1.1);
}

#boton-video-damimac:disabled {
    cursor: wait;
    opacity: 0.7;
}

.aviso-video-damimac {
    margin: 15px 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
    text-align: center;
}

/* Reproductor integrado en la pantalla del televisor */
.television-damimac iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 2px solid #111;
    border-radius: 5px;
    box-sizing: border-box;
}

.aviso-contacto {
    text-align: center;
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* =========================================================
   ALGUNAS DE MIS COSTURAS
   ========================================================= */

.costuras-destacadas {
    padding: 60px 5% 65px;
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
}

.costuras-destacadas-contenedor {
    max-width: 1100px;
    margin: 0 auto;
}

.costuras-destacadas h2 {
    margin: 0 0 10px;
    color: var(--oro);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.costuras-destacadas-intro {
    margin: 0 auto 35px;
    color: #cfcfcf;
    font-size: 1.05rem;
}

/* Contenedor de las tres costuras */
#contenedor-costuras-destacadas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 825px;
    margin: 0 auto 32px;
    min-height: 20px;
}

/* Tarjetas que generará JavaScript */
.costura-destacada-card {
    background: var(--gris);
    border: 1px solid #333;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, 
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.costura-destacada-card:hover {
    transform: translateY(-5px);
    border-color: var(--oro);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.costura-destacada-imagen {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.costura-destacada-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.costura-destacada-info {
    padding: 18px;
}

.costura-destacada-info h3 {
    margin: 0;
    color: var(--texto);
    font-size: 1.05rem;
}

/* Enlace hacia la galería completa */
.costuras-destacadas-enlace {
    display: inline-block;
    color: var(--oro);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 18px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.costuras-destacadas-enlace:hover {
    color: #fff;
    border-bottom-color: var(--oro);
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 800px) {

    #contenedor-costuras-destacadas {
        gap: 16px;
    }

}

@media (max-width: 600px) {

    .costuras-destacadas {
        padding: 45px 15px 50px;
    }

    .costuras-destacadas h2 {
        font-size: 1.55rem;
    }

    .costuras-destacadas-intro {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    #contenedor-costuras-destacadas {
        grid-template-columns: 1fr;
        width: 80%;
        max-width: 365px;
        gap: 18px;
    }

}