/* Fuentes*/
/* Raleway (Texto general) */
@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway/Raleway-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; 
    font-style: normal;
}
@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* Libre Baskerville (Títulos) */
@font-face {
    font-family: 'Libre Baskerville';
    src: url('assets/fonts/Libre_Baskerville/LibreBaskerville-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
@font-face {
    font-family: 'Libre Baskerville';
    src: url('assets/fonts/Libre_Baskerville/LibreBaskerville-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* Variables globales*/
:root {
    --color-dark: #232323;
    --color-light: #ffffff;
    --color-text: #333333; 
    --color-whatsapp: #25D366; 
    
    --font-serif: 'Libre Baskerville', serif;
    --font-sans: 'Raleway', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
}

/* Clases utilitarias */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-dark);
    color: var(--color-light);
    border: 1px solid var(--color-dark);
}

.btn-primary:hover {
    background-color: #000000;
}

/* Header */
.main-header {
    background-color: var(--color-dark);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: none; 
}

/* Seccion Hero */
.hero {
    position: relative;
    height: 100vh; 
    min-height: 600px;
    display: flex;
    align-items: center;
    
    background-color: #888888; 
    background-size: cover;
    background-position: center;
    
    padding-top: 70px; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; 
    color: var(--color-light);
}

.hero h1 {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 40px; 
    line-height: 1.1;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero h1 .serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; 
}

/* Seccion Manifiesto */
   .manifesto {
    background-color: var(--color-light);
    padding: 100px 0; 
    text-align: center;
}

.manifesto-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.manifesto h2 {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 32px; 
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 40px;
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}

.manifesto h2 .serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Seccion Proyectos */
   .projects {
    width: 100%;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: var(--color-light); 
}

.project-card {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    text-decoration: none;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
}

.project-title {
    position: absolute;
    bottom: 20px;
    left: 24px;
    color: var(--color-light);
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 300;
    z-index: 2;
}

.project-card:hover .project-img {
    transform: scale(1.05); 
}

/* Seccion Detalle de Proyectos*/
.projects-detail {
    background-color: var(--color-light);
    padding: 80px 0;
    display: none;
}

.detail-header {
    text-align: center;
    margin-bottom: 80px;
}

.detail-header h2 {
    font-size: 32px;
    font-weight: 300;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 15px;
}

.detail-header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 120px;
    padding: 0 24px;
    width: 100%;
}

.detail-info {
    flex: 1; 
    display: flex;
    flex-direction: column;
    padding: 20px 0; 
}

.detail-info h3 {
    font-size: 48px; 
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: auto;
}

.info-specs {
    display: flex;
    gap: 40px;
    font-size: 12px;
    color: var(--color-dark);
}

.detail-list-full {
    width: 100%;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 120px;
    padding: 0 24px;
    width: 100%;
}

.info-specs-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.spec-row {
    display: flex;
    gap: 20px;
}

.spec-label {
    width: 80px;
    color: #666;
    font-weight: 300;
}

.spec-value {
    color: var(--color-dark);
    font-weight: 600;
}

.project-photo-grid {
    flex: 1.5; 
    display: grid;
    grid-template-columns: 60% calc(40% - 20px); 
    gap: 20px; 
    max-height: 600px; 
}

.photo-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    height: 100%; 
    overflow: hidden; 
}

.photo-main {
    width: 100%;
    height: 60%; 
    object-fit: cover;
}

.photo-sub-images {
    display: flex;
    gap: 20px; 
    height: calc(40% - 20px); 
}

.photo-sub {
    width: 50%; 
    height: 100%;
    object-fit: cover;
}

.photo-col-right {
    height: 100%; 
    overflow: hidden;
}

.photo-tall {
    width: 100%;
    height: 100%; 
    object-fit: cover;
}

/* Seccion Ubicacion */
.location {
    background-color: var(--color-light);
    padding: 80px 0 0 0;
}

.location-header {
    text-align: center;
    margin-bottom: 40px;
}

.location-header h2 {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 36px;
    color: var(--color-dark);
    line-height: 1.1;
}

.location-header .serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.location-divider {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
    border: none;
    border-top: 1px solid #EAEAEA; 
}

.location-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
    list-style: none;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.location-list li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555555;
}

.loc-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: var(--color-dark);
    color: var(--color-light);
    border-radius: 50%;
    font-size: 10px;
    margin-right: 10px;
    flex-shrink: 0;
}

.location-map {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.map-img {
    width: 100%;
    height: auto;
}

/* Seccion 43 Edificios */
.buildings-banner {
    position: relative;
    height: 40vh;
    min-height: 350px;
    background-color: #888; 
    background-image: url('assets/img/edificios.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
}

.buildings-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
}

.buildings-content-full {
    position: relative;
    z-index: 2;
    color: var(--color-light);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buildings-content-full h2 {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 40px;
    line-height: 1.1;
    margin: 0;
}

.text-top {
    margin-bottom: 10px !important;
}

.text-bottom {
    font-family: var(--font-serif) !important;
    font-style: italic;
    margin-top: 10px !important;
}

.buildings-divider {
    width: 100%; 
    max-width: 500px;
    border: none;
    border-top: 1px solid var(--color-light);
    margin: 0; 
    opacity: 0.8;
}

/* Seccion Contacto ( Formulario Salesforce ) */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

.contact-container {
    max-width: 500px; 
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--color-dark);
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-dark);
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-dark);
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    border: none;
    outline: none;
    background: transparent;
    text-align: right;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #666;
    width: 60%;
}

.form-group input::placeholder {
    color: #b3b3b3;
    font-weight: 300;
}

.radio-options {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px !important;
    color: #666 !important;
}

.radio-label input[type="radio"] {
    accent-color: var(--color-dark); 
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.select-group {
    padding: 20px 0;
}

.label-col {
    display: flex;
    flex-direction: column;
}

.sub-label {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.custom-select {
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #666;
    background-color: transparent;
    outline: none;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    display: block;
    margin: 50px auto 0;
    padding: 16px 0;
    font-size: 16px;
    cursor: pointer;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-dark);
}

.radio-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-dark);
}

/* Seccion Footer */
   .main-footer {
    background-color: var(--color-dark);
    padding: 60px 0;
    color: var(--color-light);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

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

.footer-socials p {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 15px;
    color: #cccccc;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.social-icons a:hover img {
    opacity: 0.7;
}

/* Boton Whatsapp Flotante*/
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: #FFF;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 40px;
    }
    
    .main-nav a {
        color: var(--color-light);
        font-family: var(--font-sans);
        font-size: 14px;
        transition: opacity 0.3s;
    }
    
    .main-nav a:hover { 
        opacity: 0.7;
    }

    /* hero */
    .hero h1 {
        font-size: 56px; 
    }

    /* manifesto */
    .manifesto h2 {
        font-size: 48px;
    }

    /* proyectos */
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
    }

    .project-card {
        height: 350px;
    }

    /* Ubicacion */
    .location-header h2 {
        font-size: 48px;
    }
    
    .location-list {
        grid-template-columns: repeat(3, 1fr); 
        font-size: 15px;
    }

    /* 43 edificios */
    .buildings-content-full h2 {
        font-size: 56px; 
    }

    /* footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-socials p {
        margin-bottom: 10px;
    }
}

@media (min-width: 1024px) {
    /* proyecto */
    .projects-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .project-card {
        height: 500px;
    }

    .project-title {
        left: 40px; 
        font-size: 40px;
    }

    .projects-detail{
        display: block;
    }

    /* detalles de proyectos */
    .detail-header h2 { font-size: 40px; }
    
    .detail-row {
        flex-direction: row; 
        gap: 80px; 
        padding: 0 5%; 
        align-items: stretch; 
    }
    
    .detail-row.reverse {
        flex-direction: row-reverse;
    }

    .detail-row {
        flex-direction: row; 
        gap: 80px; 
        padding: 0 5%; 
        align-items: stretch; 
    }

    .detail-info h3 { font-size: 48px; }

    /* manifesto */
    .manifesto {
        padding: 50px 0;
    }

    /* ubicacion */
    .location {
        padding: 40px 0 0 0;
    }

    .location .container {
        max-width: 100%;
        padding: 0 0 0 5%; 
    }

    .location-content {
        display: grid;
        grid-template-columns: 35% 65%;
        grid-template-areas: 
            "header map"
            "list map";
        grid-template-rows: max-content auto; 
        gap: 5%; 
        align-items: start; 
    }
    
    .location-header {
        grid-area: header;
        text-align: left;
        margin-bottom: 0;
    }   
    
    .location-divider {
        margin: 20px 0 0 0;
    }

    .location-list {
        grid-area: list;
        grid-template-columns: repeat(2, 1fr);
        margin: 0;
        font-size: 14px;
    }

    .location-map {
        grid-area: map;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .map-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* contacto */
    .contact-section {
        padding: 50px 0 80px 0;
    }

    .contact-section .container,
    .contact-container {
        max-width: 100%;
        padding: 0 5%;
    }

    .contact-container {
        display: flex; 
        justify-content: space-between;
        align-items: flex-start;
        gap: 80px; 
    }

    .contact-title {
        text-align: left; 
        width: 35%; 
        font-size: 64px; 
        margin-bottom: 0; 
    }

    .contact-container form {
        width: 65%; 
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        width: 70%; 
    }

    /* orden */
    main {
        display: flex;
        flex-direction: column;
    }
    
    .hero { order: 1; }
    .manifesto { order: 2; }
    .projects { order: 3; }
    .projects-detail { order: 4; }
    .buildings-banner { order: 5; }
    .location { order: 6; }
    .contact-section { order: 7; }
}