 .visually-hidden {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     border: 0;
 }

 /* ================= VARIABLES ================= */

 :root {
     --color-bg: #010101;
     --color-text: #ece9df;
     --color-text2: #fdfdfd;
     --color-text-soft: rgba(236, 233, 223, 0.75);
     --color-text-muted: rgba(236, 233, 223, 0.4);

     --font-primary: 'Inter', sans-serif;
     --font-secondary: "Quicksand", sans-serif;
     --font-menu: "Roboto Condensed", sans-serif;

     --max-width: 1200px;
 }

 /* ================= GLOBAL ================= */


 body {
     font-family: var(--font-primary);
     background: var(--color-bg);
     color: var(--color-text);
 }

 body {
     font-family: 'Roboto', 'Roboto Condensed', 'Quicksand', sans-serif;
 }

 .container {
     max-width: var(--max-width);
     margin: 0 auto;
     padding: 0 20px;
 }

 a {
     color: var(--color-text);
     transition: opacity 0.3s ease;
 }

 a:hover {
     opacity: 0.6;
 }

 i {
     color: var(--color-text);
     transition: opacity 0.3s ease;
 }

 i:hover {
     color: #d9266b;
     opacity: 0.96;
 }

 h1,
 h2,
 h3,
 h4 {
     font-family: 'Quicksand', sans-serif;
     color: #fff;
 }


 section.fade-in h5 {
     font-family: 'Quicksand', sans-serif;
     font-size: 1.2em;
     text-align: center;
     margin-bottom: 24px;
     color: #ccc;
 }

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

 .site-header {
     position: fixed;
     top: 0;
     width: 100%;
     background: transparent;
     z-index: 1000;
     transition: background 0.3s ease;
 }

 .site-header.scrolled {
     background: rgba(1, 1, 1, 0.95);
 }

 .header-inner {
     max-width: var(--max-width);
     margin: 0 auto;
     padding: 12px;
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 /* LOGO */
 .logo {
     height: 70px;
 }

 /* TO TOP BUTTON */
 #toTop {
     position: fixed;
     bottom: 30px;
     right: 30px;
     width: 50px;
     height: 50px;
     background: rgba(236, 233, 223, 0.1);
     color: var(--color-text);
     border: none;
     border-radius: 50%;
     font-size: 28px;
     cursor: pointer;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.3s ease, background 0.3s ease;
     z-index: 999;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 #toTop:hover {
     background: rgba(236, 233, 223, 0.25);
 }

 #toTop.show {
     opacity: 1;
     visibility: visible;
 }

 /* ================= NAV ================= */

 .main-nav ul {
     display: flex;
     gap: 32px;
 }

 .main-nav a {
     font-family: var(--font-menu);
     font-weight: 500;
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: 0.12em;
     color: var(--color-text);
     position: relative;
 }

 .main-nav a::after {
     content: "";
     position: absolute;
     left: 0;
     bottom: -6px;
     width: 0;
     height: 1px;
     background: var(--color-text);
     transition: width 0.3s ease;
 }

 .main-nav a:hover::after {
     width: 100%;
 }

 .main-nav a.active {
     opacity: 0.6;
 }

 .main-nav a.active::after {
     width: 100%;
 }

 /* ================= SOCIAL ================= */

 .social.ig {
     font-size: 18px;
     color: var(--color-text);
 }

 /* ================= MOBILE TOGGLE ================= */

 .menu-toggle {
     display: none;
     flex-direction: column;
     gap: 5px;
 }

 .menu-toggle span {
     width: 22px;
     height: 2px;
     background: var(--color-text);
 }

 /* ================= MAIN ================= */

 .site-main {
     padding-top: 100px;
 }

 .site-main p {
     text-align: center;
     font-size: 80%;
 }


 /* ================= SLIDER ================= */

 .slider {
     position: relative;
     width: 100%;
     max-width: 1024px;
     margin: 0 auto 80px auto;
     overflow: hidden;
     border-radius: 6px;
 }

 .slider-int {
     position: relative;
     width: 100%;
     max-width: 600px;
     margin: 0 auto 80px auto;
     overflow: hidden;
     border-radius: 6px;
 }

 .slides {
     position: relative;
     width: 100%;
     height: 0;
     /* proporción 960x640 = 2:1.333 → 66.66% * 0.8 ≈ 53.33% */
     padding-bottom: 53.33%;
 }

 .slides img {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     opacity: 0;
     transition: opacity 1s ease-in-out;
 }

 .slides img.active {
     opacity: 1;
 }



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

 .hero {
     min-height: 70vh;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
 }

 .hero h1 {
     font-size: 32px;
     font-weight: 400;
     letter-spacing: 0.08em;
 }



 .hero p {
     font-size: 16px;
     max-width: 640px;
     margin: 0 auto;
     color: var(--color-text-soft);
 }

 /* ================= SECTIONS ================= */

 .section {
     text-align: center;
     padding: 120px 0;
 }



 .section p {
     font-size: 14px;
     line-height: 1.9;
     color: var(--color-text-soft);
 }

 section.fade-in h2 {
     text-align: center;
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 10px;
     font-size: 2rem;
     margin-bottom: 20px;
 }

 /* Link mapa */
 section.fade-in h2 a.project-location {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     color: inherit;
     text-decoration: none;
     position: relative;
 }

 /* Icono */
 section.fade-in h2 a.project-location i {
     font-size: 1.2em;
 }

 /* Texto "Mapa" */
 section.fade-in h2 a.project-location .map-label {
     opacity: 0;
     transform: translateX(-8px);
     transition: opacity 0.3s ease, transform 0.3s ease;
     font-size: 0.6em;
     white-space: nowrap;
 }

 /* Hover: aparece de izquierda a derecha con fade */
 section.fade-in h2 a.project-location:hover .map-label {
     opacity: 1;
     transform: translateX(0);
 }

 /* ================= ABOUT D+S ================= */
 .about-ds {
     background: rgba(236, 233, 223, 0.03);
     /* sutil contraste con el fondo */
     padding: 80px 20px;
     border-radius: 8px;
     margin: 50px auto;
     max-width: 900px;
 }

 .about-ds h2 {
     font-family: var(--font-secondary);
     font-weight: 500;
     font-size: 20px;
     letter-spacing: 0.1em;
     margin-bottom: 30px;
     color: var(--color-text);

 }

 .about-ds p {
     font-family: var(--font-primary);
     font-size: 14px;
     line-height: 1.9;
     margin-bottom: 20px;
     text-align: left;
     color: var(--color-text-soft);
 }

 .project-location {
     margin-left: 12px;
     color: var(--color-text);
     font-size: 16px;
     vertical-align: middle;
     transition: color 0.3s ease;
 }

 .project-location:hover {
     color: #ea4c89;
     /* rosa tipo Instagram, o cualquier color que quieras */
 }

 /* ================= PORTFOLIO ================= */

 .portfolio {
     padding: 10px 0;
     text-align: center;
 }

 .portfolio h2 {
     font-family: var(--font-secondary);
     font-weight: 500;
     font-size: 20px;
     letter-spacing: 0.1em;
     margin-bottom: 30px;
     color: var(--color-text);

 }

 /* GRID */
 .portfolio-grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 20px;
 }

 /* ITEM INDIVIDUAL */
 .portfolio-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     position: relative;
     /* <- importante */
     overflow: hidden;
 }


 .portfolio-item img {
     width: 100%;
     height: auto;
     border-radius: 6px;
     object-fit: cover;
     transition: transform 0.5s ease, opacity 0.5s ease;
 }

 .portfolio-item:hover img {
     transform: scale(1.05);
     opacity: 0.85;
 }

 /* LINK ENVOLVENTE */
 .portfolio-link {
     position: relative;
     display: inline-block;
 }

 /* ICONO HOVER  */
 .portfolio-hover-icon {
     position: absolute;
     top: 50%;
     left: 0%;
     /* empieza fuera a la izquierda */
     transform: translate(-100%, -50%) scale(1);
     /* fuera de la imagen */
     font-size: 28px;
     font-weight: bolder;
     color: var(--color-text2);
     opacity: 0;
     background: rgba(236, 233, 223, 0.1);
     width: 50px;
     height: 50px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
     pointer-events: none;
     z-index: 2;
 }

 /* Hover efecto */
 .portfolio-link:hover .portfolio-hover-icon {
     opacity: 1;
     left: 50%;
     /* se mueve al centro */
     transform: translate(-50%, -50%) scale(1.2);
     /* centrado y ligeramente más grande */
     background: rgba(236, 233, 223, 0.2);
 }




 /* TITULO DE CADA PROYECTO */
 .portfolio-title {
     margin-top: 8px;
     font-family: var(--font-menu);
     font-size: 14px;
     color: var(--color-text);
     text-align: center;
 }

 /* RESPONSIVE */
 @media (max-width: 1024px) {
     .portfolio-grid {
         grid-template-columns: repeat(3, 1fr);
     }
 }

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

 @media (max-width: 480px) {
     .portfolio-grid {
         grid-template-columns: 1fr;
     }
 }

 /* ===============================
   PUBLICACIONES
================================ */

 .publicaciones-lista {
     list-style: none;
     padding: 0;
     margin: 60px auto;
     max-width: 1024px;

     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 28px 60px;
 }

 /* ITEM */
 .publicaciones-lista li {
     position: relative;
     padding-bottom: 16px;
     margin-bottom: 20px;

     /* línea dashed como fondo (NO CAPA) */
     background-image: repeating-linear-gradient(to right,
         rgba(240, 240, 240, 0.9),
         rgba(240, 240, 240, 0.9) 6px,
         transparent 6px,
         transparent 12px);
     background-position: left bottom;
     background-size: 100% 1.2px;
     background-repeat: no-repeat;
 }

 /* LINK (anula opacity global) */
 .publicaciones-lista a {
     font-family: 'Quicksand', sans-serif;
     text-decoration: none;
     color: inherit;
     font-size: 1.7rem;
     font-weight: 500;
     letter-spacing: 0.02em;

     position: relative;
     display: inline-block;

     opacity: 1;
     /* CLAVE */
 }

 /* Texto */
 .publicaciones-lista .publi-title {
     display: inline-block;
     transition: opacity 0.3s ease;
 }

 /* Hover SOLO texto */
 .publicaciones-lista a:hover .publi-title {
     opacity: 0.6;
 }

 /* ===============================
   THUMBNAIL ROLL OVER
================================ */

 .publi-thumb {
     position: absolute;
     top: 50%;
     left: calc(100% + 30px);

     transform: translateY(-50%) scale(0.96);
     width: 150px;

     opacity: 0;
     pointer-events: none;

     z-index: 9999;
     /* SIEMPRE ARRIBA */

     transition:
         opacity 0.25s ease,
         transform 0.25s ease;
 }

 .publi-thumb img {
     width: 100%;
     display: block;
     border-radius: 6px;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
 }

 /* Hover thumbnail */
 .publicaciones-lista a:hover .publi-thumb {
     opacity: 1;
     transform: translateY(-50%) scale(1);
 }

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

 @media (max-width: 800px) {
     .publicaciones-lista {
         grid-template-columns: 1fr;
     }

     .publi-thumb {
         display: none;
     }
 }


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

 @media (max-width: 800px) {
     .publicaciones-lista {
         grid-template-columns: 1fr;
     }

     .publi-thumb {
         display: none;
     }
 }


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

 .site-footer {
     padding: 10px 10px;
     font-size: 11px;
 }

 .footer-inner {
     max-width: var(--max-width);
     margin: 0 auto;
     text-align: center;
 }

 .footer-address {
     font-style: normal;
     margin-bottom: 8px;
     color: var(--color-text-soft);
     line-height: 25px;
     letter-spacing: 0.05em;
 }


 .footer-legal {
     letter-spacing: 0.05em;
     font-size: 10px;
     letter-spacing: 0.05em;
 }

 .footer-social {
     font-size: 18px;
 }

 .footer-social a {
     display: inline-block;
     color: #666;
     margin-right: 12px;
     font-size: 16px;
 }

 .footer-legal p {

     display: inline-block;
     color: #666;

     margin-left: 17px;
     font-size: 10px;
     padding-top: 16px;
     letter-spacing: 0.15em;
 }

 .footer-social a:last-child {
     margin-right: 0;
 }

 .footer-logo img {
     height: 40px;
     display: block;
     margin: 0 auto 20px auto;
     opacity: 0.3;
     /* 70% de transparencia */
 }

 /* ICON FONTS EXAMPLES (usa tu font o SVG) */
 .icon-instagram::before {
     content: "\f16d";
     /* FontAwesome Instagram */
     font-family: "FontAwesome";
 }



 .footer-social a:hover .icon-instagram,
 .social.ig:hover {
     color: #E1306C;
     /* rosa Instagram */
 }


 .icon-email::before {
     content: "\f0e0";
     /* FontAwesome Email/Envelope */
     font-family: "FontAwesome";
 }



 /* ================= MENU TOGGLE ANIMATION ================= */

 .menu-toggle.open span:nth-child(1) {
     transform: translateY(7px) rotate(45deg);
 }

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

 .menu-toggle.open span:nth-child(3) {
     transform: translateY(-7px) rotate(-45deg);
 }

 .menu-toggle span {
     transition: all 0.3s ease;
 }

 /* ================= MENU OVERLAY ================= */

 .menu-overlay {
     position: fixed;
     inset: 0;
     background: rgba(1, 1, 1, 0.85);
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.3s ease;
     z-index: 900;
 }

 .menu-overlay.active {
     opacity: 1;
     visibility: visible;
 }

 /* bloquear scroll cuando menú está abierto */
 body.menu-open {
     overflow: hidden;
 }

 @media (max-width: 900px) {

     .main-nav {
         position: fixed;
         top: 0;
         right: -100%;
         width: 100%;
         height: 100vh;
         background: var(--color-bg);
         display: flex;
         align-items: center;
         justify-content: center;
         transition: right 0.35s ease;
     }

     .main-nav.open {
         right: 0;
     }

     .main-nav ul {
         flex-direction: column;
         gap: 30px;
         text-align: center;
     }

     .menu-toggle {
         display: flex;
     }

     .social.ig {
         display: none;
     }

     .footer-social a {
         margin-right: 20px;
     }
 }


 /* ================= FADE-IN ================= */

 .fade-in {
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.8s ease-out, transform 0.8s ease-out;
     will-change: opacity, transform;
 }

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

 /* ================= CONTACTO ================= */
 .contact-wrapper {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 40px;
     margin-top: 40px;
     align-items: stretch;
 }

 /* LOGO CONTACTO */
 .contact-logo {
     margin-bottom: 10px;
 }

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

 /* MAPA */
 .contact-map iframe {
     width: 100%;
     height: 100%;
     min-height: 320px;
     border: 0;
     border-radius: 8px;
 }

 /* INFO */
 .contact-info {
     display: flex;
     flex-direction: column;
     justify-content: center;
     gap: 25px;
 }

 .contact-item {
     display: flex;
     align-items: flex-start;
     gap: 15px;
 }

 .contact-item i {
     font-size: 1.4rem;
     margin-top: 4px;
 }

 .contact-item p {
     margin: 0;
     line-height: 1.5;
 }

 .contact-item a {
     color: inherit;
     text-decoration: none;
 }

 .contact-item a:hover {
     text-decoration: underline;
 }

 /* RESPONSIVE */
 @media (max-width: 900px) {
     .contact-wrapper {
         grid-template-columns: 1fr;
     }

     .contact-map iframe {
         min-height: 280px;
     }
 }