/* Importar fuentes locales en lugar de Google Fonts */
@import url('fonts.css');

/* ===== ESTILOS GLOBALES ===== */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f5f0;
    font-family: 'Inter', sans-serif;
    color: #222;
    margin: 0;
    padding-top: 70px; /* Espacio para header fijo */
}

/* ===== HEADER ===== */
header {
    padding: 20px;
    text-align: center;
}

header img {
    display: block;
    margin: 0 auto;
    max-width: 150px;
    height: auto;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
}

header a {
    text-decoration: none;
    color: #555;
}

/* Header fijo */
.header-fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 20px;
    box-sizing: border-box;
}

.header-fijo .header-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-fijo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Botón menú hamburguesa */
#menu-burger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#menu-burger svg {
    stroke: #222;
}

/* ===== MAIN CONTENT ===== */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin: 40px 0 20px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.project-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 650px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-item .image-container {
    position: relative;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.project-item h2,
.project-item p {
    margin: 0;
    padding: 0 24px;
    text-align: left;
}

.project-item h2 {
    padding-top: 20px;
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #111;
}

.project-item p {
    padding-bottom: 24px;
    font-size: 1rem;
    color: #777;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Overlay para "Ver más" */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.project-item:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== GALERÍAS DE CATEGORÍAS ===== */
.galeria-barandales,
.galeria-canceles,
.galeria-canceles-bano,
.galeria-closets,
.galeria-domos,
.galeria-espejos,
.galeria-kiosko,
.galeria-puertas,
.galeria-ventanas,
.galeria-vitrinas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.galeria-barandales a,
.galeria-canceles a,
.galeria-canceles-bano a,
.galeria-closets a,
.galeria-domos a,
.galeria-espejos a,
.galeria-kiosko a,
.galeria-puertas a,
.galeria-ventanas a,
.galeria-vitrinas a {
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.galeria-barandales a:hover,
.galeria-canceles a:hover,
.galeria-canceles-bano a:hover,
.galeria-closets a:hover,
.galeria-domos a:hover,
.galeria-espejos a:hover,
.galeria-kiosko a:hover,
.galeria-puertas a:hover,
.galeria-ventanas a:hover,
.galeria-vitrinas a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.card-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    margin: 0;
    flex-grow: 1;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #005ab4;
    text-decoration: none;
    margin-top: 16px;
    display: inline-block;
}

/* ===== GALERÍA DE DETALLES ===== */
.detail-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    width: 100%;
}

.detail-gallery a {
    display: block;
    width: 100%;
    max-width: 800px;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-gallery a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.detail-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== GALERÍA GRID (MOSAICO) ===== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-grid div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.img-number {
    margin-top: 8px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: center;
}

.photo-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.photo-card a {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.65);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.photo-card a:hover .hover-overlay,
.photo-card a:focus .hover-overlay {
    opacity: 1;
}

.card-caption {
    padding: 18px 8px 16px 8px;
    text-align: center;
    background: #fff;
    flex-shrink: 0;
}

.card-caption h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    letter-spacing: 1px;
}

/* ===== SECCIONES HERO ===== */
.hero-section,
.hero-section-quienes-somos,
.hero-section-anos-servicio {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero-section {
    background-image: url('../../img/Domos/20230727_151720.jpg');
}

.hero-section-quienes-somos {
    background-image: url('../../img/Barandales/20220830_121448.jpg');
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section-anos-servicio {
    background-image: url('../../img/Canceles/IMG-20200514-WA0051.jpg');
    padding: 80px 20px;
}

.hero-section::before,
.hero-section-quienes-somos::before,
.hero-section-anos-servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(212, 208, 208, 0.452);
    z-index: 1;
}

.hero-content,
.hero-content-quienes-somos {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-quienes-somos {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.801);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.hero-section-quienes-somos h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-section-quienes-somos p {
    font-size: 1.3rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.801);
    margin-bottom: 20px;
}

.hero-content-anos-servicio {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.numero-grande {
    font-size: 10rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.texto-vertical {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.texto-vertical .palabra-grande {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.texto-vertical .frase-pequena {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ===== COLLAGE HERO ===== */
.call-to-action-hero-collage {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #f8f5f0;
    box-sizing: border-box;
}

.collage-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.collage-bg img {
    position: absolute;
    width: 25%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.call-to-action-hero-collage:hover .collage-bg img {
    opacity: 0.8;
    transform: scale(1.05) rotate(0deg);
}

/* Posicionamiento de imágenes del collage */
.collage-img-1 { top: 10%; left: 15%; transform: rotate(-8deg); }
.collage-img-2 { top: 10%; right: 15%; transform: rotate(8deg); }
.collage-img-3 { top: 30%; left: 5%; transform: rotate(6deg); }
.collage-img-4 { top: 30%; right: 5%; transform: rotate(-6deg); }
.collage-img-5 { top: 50%; z-index: 1; opacity: 0.6; pointer-events: none; transform: translate(-50%, -50%) scale(1.1) !important; }
.collage-img-6 { bottom: 30%; left: 5%; transform: rotate(-6deg); }
.collage-img-7 { bottom: 30%; right: 5%; transform: rotate(6deg); }
.collage-img-8 { bottom: 10%; left: 15%; transform: rotate(8deg); }
.collage-img-9 { bottom: 10%; right: 15%; transform: rotate(-8deg); }
.collage-img-10 { top: 50%; left: 25%; transform: translateY(-50%) rotate(4deg); }
.collage-img-11 { top: 50%; right: 25%; transform: translateY(-50%) rotate(-4deg); }

.call-to-action-hero-collage:hover .collage-img-5 {
    transform: translate(-50%, -50%) scale(1.1) !important;
    opacity: 0.8;
}

.call-to-action-hero-collage .cta-link {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 35px 60px;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.call-to-action-hero-collage .cta-link:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.call-to-action-hero-collage .cta-link h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.8), 1px 1px 4px rgba(0,0,0,0.6);
    letter-spacing: 2px;
    line-height: 1.3;
}

.call-to-action-hero-collage .cta-link a {
    color: inherit;
    text-decoration: inherit;
}

/* ===== SIDEBAR MENU ===== */
#sidebar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    max-height: 100vh;
    background-color: rgba(248, 245, 240, 0.397);
    backdrop-filter: blur(10px);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    border: none;
}

#sidebar-menu.open {
    right: 0;
}

#close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

#close-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

#sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 60px 0 20px 0;
}

#sidebar-menu li {
    margin: 0;
    padding: 0;
}

#sidebar-menu a {
    display: block;
    padding: 15px 30px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#sidebar-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #0077cc;
}

/* Submenú */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.02);
}

.submenu.open {
    max-height: 650px;
}

.submenu-toggle {
    display: block;
    padding: 15px 30px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    user-select: none;
}

.submenu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #0077cc;
}

.submenu-toggle.active {
    color: #0077cc;
    background-color: rgba(0, 119, 204, 0.1);
}

.submenu a {
    padding-left: 45px;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.submenu a:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 30px;
    background: #e9e7e2;
    color: #222;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap;
}

.info-contacto {
    flex: 1;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.info-contacto h2 {
    color: #222;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* Mensaje de Bienvenida */
.mensaje-bienvenida {
    margin-bottom: 8px;
}

.mensaje-bienvenida p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Elementos de Contacto con Iconos */
.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contacto-icono {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    margin-top: 2px;
}

.contacto-texto {
    flex: 1;
}

.contacto-texto p {
    color: #222;
    margin: 0;
    line-height: 1.5;
}

.contacto-texto a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    color: #222;
}

.contacto-texto a:hover {
    color: #555;
}

/* Sección de Horario */
.horario-section {
    margin-top: 8px;
}

.horario-section h3 {
    color: #222;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.horario-texto {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

.horario-texto p {
    color: #222;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.4;
    font-size: 0.95rem;
    text-align: left;
}

.horario-texto p:last-child {
    margin-bottom: 0;
}

/* Sección de Redes Sociales */
.footer-contact-social {
    margin-top: 24px;
}

.footer-contact-social h4 {
    color: #222;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Mapa */
.mapa-domicilio {
    flex: 1;
    min-width: 350px;
}

.mapa-domicilio h3 {
    color: #222;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.mapa-domicilio iframe {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    aspect-ratio: 4/3;
}

.redes-sociales {
    margin-top: 12px;
}

.redes-sociales a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.redes-sociales a:hover {
    background: #0077cc;
    color: #fff;
}

/* --- Estilo General del Footer --- */
.modern-footer {
    background-color: #f8f5f0;
    color: #333;
    font-family: 'Inter', sans-serif;
    padding: 60px 20px 20px 20px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- SECCIÓN 1: Cuadrícula de Enlaces --- */
.footer-grid {
    display: grid;
    /*
        ================================================
        ESTE ES EL CAMBIO MÁS IMPORTANTE:
        Dos columnas como estilo base para la vista MÓVIL.
        ================================================
    */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* Espacio entre columnas en móvil */
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

/* En pantallas más grandes (desktops), cambiamos a 3 columnas */
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px; /* Un poco más de espacio en desktop */
    }
}

.footer-column h4 {
    color: #222;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-align: left;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a, .footer-column li {
    color: #222;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #0077cc;
}

/* --- SECCIÓN 2 y 3 (Se mantienen igual) --- */

.footer-contact-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px 0;
    gap: 20px;
    text-align: center;
}

.footer-contact-social h4 {
    color: #222;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

.redes-sociales {
    margin-top: 12px;
}

.redes-sociales a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.redes-sociales a:hover {
    background: #0077cc;
    color: #fff;
}

.footer-bottom-bar {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9em;
}

@media (min-width: 768px) {
    .footer-bottom-bar {
        text-align: left;
    }
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-logo-img {
    max-width: 140px;
    height: auto;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e0ded8;
    text-align: right;
    font-size: 0.9em;
    color: #888;
}

/* ===== MAPA ===== */
.mapa {
    min-height: 200px;
    background: #d6d4ce;
    border-radius: 10px;
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.mapa-zona-section {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
    background-color: #e8e8e821;
}

.mapa-zona-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.mapa-zona-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mapa-texto {
    position: absolute;
    bottom: 20px;
    left: 30%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0);
    color: rgb(18, 17, 77);
    padding: 15px 30px;
    border-radius: 5px;
    text-align: left;
}

.mapa-texto h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .detail-gallery {
        column-count: 2;
    }
}

@media (max-width: 900px) {
    footer {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        justify-content: center;
    }
    
    .footer-col {
        align-items: center;
        min-width: 0;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2rem;
        margin: 30px 0 15px 0;
        letter-spacing: 1px;
    }
    
    .detail-gallery {
        column-count: 1;
    }
    
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1,
    .intro-section-con-fondo h2 {
        font-size: 2.2rem;
    }
    
    .hero-section-quienes-somos h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-section-quienes-somos p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .hero-content-quienes-somos {
        padding: 15px;
    }
    
    .numero-grande {
        font-size: 6rem;
    }
    
    .texto-vertical .palabra-grande {
        font-size: 2.5rem;
    }
    
    /* Footer Responsive */
    footer {
        padding: 40px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .info-contacto {
        min-width: auto;
        width: 100%;
    }

    .mapa-domicilio {
        min-width: auto;
        width: 100%;
    }

    .contacto-item,
    .horario-item {
        gap: 10px;
    }

    .contacto-icono,
    .horario-icono {
        width: 20px;
        height: 20px;
    }

    .info-contacto h2 {
        font-size: 1.6rem;
    }

    .horario-section h3,
    .mapa-domicilio h3 {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .footer-bottom {
        text-align: left;
    }
    
    .footer-logo-container {
        align-self: center;
    }
    
    #sidebar-menu {
        width: 280px;
        right: -280px;
    }
    
    #sidebar-menu.open {
        right: 0;
    }
    
    .collage-bg img {
        width: 35%;
        opacity: 0.5;
    }
    
    .collage-img-3,
    .collage-img-4,
    .collage-img-6,
    .collage-img-7,
    .collage-img-10,
    .collage-img-11 {
        display: none;
    }
    
    .collage-img-1 { top: 10%; left: 10%; }
    .collage-img-2 { top: 10%; right: 10%; }
    .collage-img-5 { top: 50%; left: 50%; right: 50%; transform: translate(-50%, -50%) scale(1.1); }
    .collage-img-8 { bottom: 10%; left: 10%; }
    .collage-img-9 { bottom: 10%; right: 10%; }
    
    .call-to-action-hero-collage .cta-link h2 {
        font-size: 1.4rem;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
    }
}

@media (min-width: 600px) {
    .detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .detail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

