/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
}

/* Carrusel */
.carousel {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

/* Animación de desvanecimiento y zoom */
@keyframes fade {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 1;
        transform: scale(1.1);
    }
    33% {
        opacity: 1;
        transform: scale(1.1);
    }
    43% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Estilo del encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    background-color: transparent;
    transition: opacity 0.3s ease;
}

/* Clase para difuminar el encabezado */
header.fade {
    opacity: 0.2;
}

/* Restaurar opacidad al pasar el ratón */
header:hover {
    opacity: 1;
}

.logo img {
    width: 250px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px black;
}

nav ul li a:hover {
    color: #ccc;
}

/* Estilos para la página de contacto, estudio y proyectos */
.contacto-header {
    background-color: #fff;
}

.contacto-header nav ul li a {
    color: #000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contacto-header nav ul li a:hover {
    color: #333;
}

/* Estilos para la página de contacto */
.contacto {
    padding: 100px 20px 20px;
    margin: 0;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
}

.contacto-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.mapa-container {
    flex: 1;
    text-align: center;
}

.mapa {
    margin-bottom: 5px;
}

.mapa iframe {
    width: 100%;
    height: 400px;
}

.contact-info {
    font-size: 14px;
    color: #888;
    text-align: center;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 30px;
}

form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 14px;
}

input, textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    height: 80px;
    resize: vertical;
}

button {
    padding: 8px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #555;
}

/* Estilos para la página de estudio */
.estudio {
    padding: 100px 20px 20px;
    margin: 0;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
}

.estudio-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.estudio-image {
    flex: 1;
    text-align: center;
}

.estudio-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

.estudio-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.estudio-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.estudio-text p {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 15px;
}

/* Estilos para la página de proyectos */
.proyectos {
    padding: 100px 20px 20px;
    margin: 0;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
}

.proyectos-grid a {
    text-decoration: none;
}

.proyectos-grid p {
    color: #000;
}

.proyecto-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.proyecto-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.proyecto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proyecto-overlay span {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    text-align: center;
    padding: 0 15px;
    max-width: 80%;
    box-sizing: border-box;
}

.proyecto-item:hover img {
    opacity: 0.5;
}

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

/* Estilos para la página de detalle de proyecto */
.proyecto-detalle {
    background-color: #fff;
    color: #333;
    padding: 100px 20px 20px;
    margin: 0;
    min-height: 100vh;
}

.proyecto-info {
    max-width: 1200px;
    margin: 0 auto 40px;
}

.proyecto-tabla {
    background-color: #fff;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.proyecto-tabla h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.proyecto-tabla hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

.tabla-fila {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.tabla-label {
    font-weight: 700;
    color: #333;
}

.tabla-fila p {
    font-size: 16px;
    color: #333;
}

/* Render a ancho completo */
.proyecto-render {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.proyecto-render img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Memoria con imagen lateral */
.proyecto-memoria {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
    align-items: center;
}

.memoria-contenido {
    flex: 2;
}

.memoria-contenido h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.memoria-contenido p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    text-align: justify;
    margin-bottom: 15px;
}

.memoria-imagen {
    flex: 1;
}

.memoria-imagen img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Planos */
.proyecto-planos {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.planos-galeria {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.planos-galeria img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.planos-galeria img:hover {
    opacity: 0.8;
}

.planos-galeria img:only-child {
    width: 100%;
}

/* Galería de imágenes */
.proyecto-galeria {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.galeria-imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.galeria-foto {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.galeria-foto.grande {
    grid-column: span 2;
    grid-row: span 2;
}

/* Estilos para la página de Aviso Legal */
.aviso-legal {
    padding: 100px 20px 20px;
    margin: 0;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
}

.aviso-legal-contenido {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.aviso-legal-contenido h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.aviso-legal-contenido h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 10px;
}

.aviso-legal-contenido p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    text-align: justify;
    margin-bottom: 15px;
}

.aviso-legal-contenido ul {
    margin: 10px 0;
    padding-left: 20px;
}

.aviso-legal-contenido ul li {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.aviso-legal-contenido a {
.cancel    color: #333;
    text-decoration: underline;
}

.aviso-legal-contenido a:hover {
    color: #666;
}

/* Estilos para la página de Política de Privacidad */
.politica-privacidad {
    padding: 100px 20px 20px;
    margin: 0;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
}

.politica-privacidad-contenido {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.politica-privacidad-contenido h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.politica-privacidad-contenido h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 10px;
}

.politica-privacidad-contenido p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    text-align: justify;
    margin-bottom: 15px;
}

.politica-privacidad-contenido ul {
    margin: 10px пион 0;
    padding-left: 20px;
}

.politica-privacidad-contenido ul li {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.politica-privacidad-contenido a {
    color: #333;
    text-decoration: underline;
}

.politica-privacidad-contenido a:hover {
    color: #666;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ccc;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Hacer que las imágenes sean clicables visualmente */
.proyecto-render img,
.memoria-imagen img,
.planos-galeria img,
.galeria-foto {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.proyecto-render img:hover,
.memoria-imagen img:hover,
.planos-galeria img:hover,
.galeria-foto:hover {
    opacity: 0.8;
}

/* ========================================
   CONTACTO MINIMALISTA (inspirado en diazydiaz)
   ======================================== */

.contacto-minimal {
    padding: 140px 20px 80px;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contacto-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.contacto-titulo {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacto-direccion {
    margin-bottom: 40px;
}

.ciudad {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.direccion {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.mapa-link {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.mapa-link:hover {
    color: #666;
}

.contacto-email {
    margin-bottom: 60px;
}

.email-link {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #666;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacto-form input,
.contacto-form textarea {
    padding: 14px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #fafafa;
    transition: border 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #000;
}

.contacto-form textarea {
    resize: vertical;
}

.contacto-form button {
    padding: 14px;
    background-color: #000;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contacto-form button:hover {
    background-color: #333;
}

/* Responsive */
@media (max-width: 600px) {
    .contacto-titulo {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .contacto-container {
        padding: 0 20px;
    }
}

/* ========================================
   PÁGINAS LEGALES (Aviso Legal y Privacidad)
   ======================================== */

.legal {
    padding: 140px 20px 80px;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.legal-container {
    max-width: 800px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.7;
}

.legal h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 12px;
    color: #000;
    text-transform: uppercase;
}

.legal p {
    font-size: 16px;
    margin-bottom: 16px;
}

.legal a {
    color: #000;
    text-decoration: underline;
}

.legal a:hover {
    color: #666;
}

.ultima-actualizacion {
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 600px) {
    .legal h1 {
        font-size: 28px;
    }
    .legal-container {
        padding: 0 20px;
    }
}

/* GRACIAS */
.gracias {
    padding: 140px 20px;
    background: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gracias-container h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.gracias-container p {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

.btn-volver {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-volver:hover {
    background: #333;
}
