/* === 1. VARIABLES :root === */
:root {
    --color-primario: #BC5800;
    --color-hover: #A34A00;
    --color-texto: #111111;
    --color-fondo: #FFFFFF;
    --color-fondo-alt: #F7F7F7;
    --color-borde: #E0E0E0;
    --color-footer-bg: #1A1A1A;
    --color-footer-text: #E8E8E8;
}

/* === 2. RESET === */
*, *::before, *::after {
    box-sizing: border-box;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
º
/* === 3. BASE === */
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.2;
    font-size: 1.05rem;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--color-primario);
    text-transform: uppercase;
    letter-spacing: 0em;
    line-height: 0.8em;
}
p {
    margin-bottom: 1.5rem;
}
a {
    color: var(--color-primario);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--color-hover);
}
ul, ol {
    list-style: none;
}
strong {
    font-weight: 500;
}
em {
    font-style: italic;
}

/* === 4. UTILIDADES === */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.section-padding {
    padding: 80px 0;
}
.btn-primario {
    background: var(--color-primario);
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 13px 32px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background 0.2s ease;
}
.btn-primario:hover {
    background: var(--color-hover);
    color: #FFFFFF;
}
.text-center {
    text-align: center;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.mt-40 { margin-top: 40px; }
.mt-15 { margin-top: 15px; }
.mb-40 { margin-bottom: 40px; }
.pt-40 { padding-top: 40px; }
.mx-auto { margin-inline: auto; }
.max-w-p { max-width: 800px; margin-inline: auto; }
.bg-alt { background-color: var(--color-fondo-alt); }
.bg-white { background-color: var(--color-fondo); }

/* === 5. HEADER === */
.site-header {
    background-color: var(--color-fondo);
    border-bottom: 1px solid var(--color-borde);
    position: sticky;
    top: 0;
    z-index: 100;
	padding-top: 32px;
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-container {
    display: flex;
	flex-direction: column;
    align-items: center;
    height: 90px;
}

.site-branding {
	padding-bottom: 32px;
}

.site-branding a {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--color-primario);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0;
}
.main-navigation ul {
    display: flex;
    gap: 30px;
}
.main-navigation a {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #333333;
    transition: color 0.2s ease;
}
.main-navigation a:hover,
.main-navigation li.current-menu-item a {
    color: var(--color-primario);
}

/* === 6. SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primario);
    color: #fff;
    padding: 10px 20px;
    z-index: 1000;
    font-weight: 500;
}
.skip-link:focus {
    top: 0;
}

/* === 7. HERO === */
.hero-section {
    background-color: var(--color-fondo);
    padding-top: 130px;
    padding-bottom: 90px;
}
.hero-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--color-primario);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    margin-bottom: 20px;
}
.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 1.15rem;
    color: #555555;
    max-width: 640px;
    margin: 0 auto 30px;
}
.hero-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-separator {
    width: 60px;
    height: 3px;
    background-color: var(--color-primario);
    margin: 40px auto 0;
}

/* === 8. SECCIONES HOME === */
.section-intro {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    max-width: 700px;
    margin-top: 20px;
}
.filosofia-card {
    border-left: 3px solid var(--color-primario);
    padding: 18px;
    background: var(--color-fondo);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
}
.encargos-title {
    font-size: 1.8rem;
}

/* === 9. PÁGINAS INTERIORES === */
.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
}
.page-content p {
    max-width: 800px;
}

/* === 10. GALERÍA PLACEHOLDERS === */
.gallery-grid {
    display: grid;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.gallery-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.gallery-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.gallery-item {
    aspect-ratio: 4 / 3;
}
.gallery-grid.aspect-16-9 .gallery-item {
    aspect-ratio: 16 / 9;
}
.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
}

/* === 11. TARJETAS EQUIPO === */
.team-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}
.team-card {
    display: flex;
    gap: 30px;
    align-items: center;
}
.team-card-img {
    flex: 0 0 240px;
}
.squad-placeholder {
    aspect-ratio: 1 / 1;
}
.sq-placeholder {
    aspect-ratio: 1 / 1;
}
.team-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primario);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.team-role {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #545454;
    margin-bottom: 15px;
}
.home-team-card {
    flex-direction: column;
    gap: 0;
}
.home-team-card .team-name {
    font-size: 1.3rem;
}

/* === 12. LISTAS PROYECTOS === */
.project-list {
    margin-top: 30px;
    margin-bottom: 40px;
}
.project-list li {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--color-borde);
    padding: 12px 0;
    align-items: baseline;
}
.project-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--color-primario);
}
.project-entity {
    font-family: 'DM Sans', sans-serif;
    color: #777777;
}
.project-separator {
    color: var(--color-borde);
}

/* === 13. BLOQUE DESTACADO === */
.highlight-block {
    border-left: 4px solid var(--color-primario);
    background-color: var(--color-fondo-alt);
    padding: 32px;
    margin: 40px 0;
}
.highlight-quote {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--color-primario);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 40px 0;
    line-height: 1.4;
}
.large-quote {
    font-size: 2rem;
}
.centered-quote {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
}

/* === 14. CONTACTO === */
.contact-page {
    min-height: 60vh;
}
.contact-intro {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}
.contact-big-data {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}
.contact-big-data a {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primario);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
}
.contact-big-data a:hover {
    color: var(--color-hover);
}
.contact-footer {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #777777;
}

/* === 15. FOOTER === */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.footer-tagline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    color: var(--color-footer-text);
}
.footer-col-2 ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col-2 a {
    color: var(--color-footer-text);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-col-2 a:hover {
    color: #FFFFFF;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
}
.footer-link {
    color: var(--color-footer-text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: #FFFFFF;
}
.footer-bottom {
    border-top: 1px solid #333333;
    padding: 20px 0;
    text-align: center;
}
.copyright {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: #545454;
    margin: 0;
}

/* === 16. BURGER MENU === */
.burger-menu {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 200;
    padding: 0;
}
.burger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primario);
    transition: all 0.3s ease;
}
.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-line:nth-child(3) { bottom: 0; }

.burger-menu.open .burger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.burger-menu.open .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu.open .burger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-fondo);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.nav-overlay ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}
.nav-overlay a {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #333333;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item__link {
    display: block;
    text-decoration: none;
}

.gallery-item__bg, .photo-item__bg {
    width: 100%;
    padding-bottom: 75%; /* ratio 4:3 — cámbialo a 100% para cuadrado */
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item__bg {
    transform: scale(1.05);
}

.img-placeholder:has(.photo-item__bg) {
	border-radius:50%;
}
.photo-item__bg {
	padding-bottom: 100%; 
	border-radius: 50%;
}


.gallery-item__title {
    display: block;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: inherit;
    text-align: center;
}


/* === 17. RESPONSIVE @media max-width: 1024px === */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-padding {
        padding: 80px 0;
    }
}

/* === 18. RESPONSIVE @media max-width: 768px === */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    .burger-menu {
        display: block;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .gallery-grid.cols-3, .gallery-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-card {
        flex-direction: column;
        gap: 20px;
    }
    .team-card-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 240px;
    }
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .section-padding {
        padding: 48px 0;
    }
    .project-list li {
        flex-direction: column;
        gap: 2px;
    }
    .project-separator {
        display: none;
    }
}

/* === 19. RESPONSIVE @media max-width: 480px === */
@media (max-width: 480px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .gallery-grid.cols-3, .gallery-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* === 20. ACCESIBILIDAD === */
:focus-visible {
    outline: 2px solid var(--color-primario);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
