
/* --- Reset y Variables --- */
:root {
    --primary-color: #9C9990; /* Un tono dorado/bronce sugerido. Color base para proyectos*/
    --dark-color: #2D2B2B;
    --light-color: #f4f4f4;
    --text-color: #333;
    --font-family: 'Raleway','Helvetica Neue', 'Arial', sans-serif;
    
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Estilos Base (Mobile-First) --- */



body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section[id] {
  scroll-margin-top: 85px; /* Ajusta este valor a la altura de tu header + un pequeño margen */
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--dark-color); text-align: center; margin-bottom: 40px; }
p { margin-bottom: 20px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    /* background-color: var(--primary-color); cambiado sl*/
    background-color: #f3ba00 ;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}
.btn:hover { background-color: #a88100; }

/* --- Header y Navegación --- */
.main-header {
    background: var(--dark-color);
    padding: 15px 0;
    /* border-bottom: 1px solid #ddd; */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(10,10,10,0.85);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px; /* Ajustar según tu logo */
}

.main-nav ul { list-style: none}
.main-nav li { display: inline-block; margin-left: 20px}
.main-nav a { text-decoration: none; color: #fff}
.main-nav a:hover { color: var(--primary-color); }

.hamburger { display: none; cursor: pointer; } /* Oculto en desktop */
.hamburger-line { width: 30px; height: 3px; background: var(--primary-color); margin: 6px 0; }


        
/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('./img/3.jpg') no-repeat center center/cover;
    color: #fff;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
#hero h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
#hero p { font-size: 1.2rem; max-width: 700px; margin-bottom: 30px; }

/* --- Secciones --- */
section { padding: 60px 0; }
#servicios { background: #000; }
#servicios h2{ color: #fff; }
.services-grid { display: grid; gap: 30px; }
.service-card { background: var(--dark-color); padding: 30px; text-align: center; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-card img {max-width: 100%;}
.service-card h3 { color: #f3ba00; }
.service-card p { color: var(--light-color); }

/* --- Secciones --- */

#nosotros { background: var(--dark-color); color: #f3ba00;}
#nosotros h2{ color: white;}
.nosotros-grid { display: grid; gap: 30px; }
.nosotros-card { padding: 30px; text-align: center; border-radius: 5px; }
.nosotros-card img {max-width: 100%;}
.nosotros-card h3 { color: white; font-size: 2rem;}

/* --- pROYECTOS --- */

#proyectos { background: var(--primary-color); }

.proyectos-grid {
    display: flex;
    column-gap: 30px;
    color: #fff;

}

.proyectos-card {
    background-color: var(--dark-color);
    box-shadow: 0 3px 3px rgba(0,0,0,0.15);
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    

}

.proyectos-card img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.proyectos-card h3{
    margin: 20px;
    animation: animaproyectos 1s;
}

.proyectos-card p{
    margin: 0 20px 20px 20px;
}

.proyectos-btn {
    background-color: #000;
    display: inline-block;
    line-height: 1.5rem;
    color: #fff;
    border-radius: 22px;
    padding: 10px;
    width: 150px;
    text-align: center;
    text-decoration: none;
    margin: auto auto 30px auto;
}

@keyframes animaproyectos{
    from { opacity: 0; }
    to { opacity: 1; }
}

/* .separador {
    height: 30px;
    background-color: var(--light-color);
    background-image: url(./img/brushprimary.svg);
    background-size: contain;
    margin: 5px 0 0 0;
    color: blue;
} */



/* .projects article img{
    
} */
        
/* .projects-grid { display: grid; gap: 20px;}
.projects-grid a { text-decoration: none;}
.project-card figure { margin: 0; position: relative; overflow: hidden; border-radius: 5px; }
.project-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.3s ease; }
.project-card figcaption {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    height: 130px;
        
        color: #fff;
        
        position: static;
        padding: 0;
        box-sizing: border-box;
        transform: none;
        transition: none;
        border-radius: 0;
}
.project-card figure:hover img { transform: scale(1.05); }
.project-card figure:hover figcaption { transform: translateY(0); }
.project-card h3 { padding: 10px; margin-bottom: 5px; }
.project-card p { padding: 10px; margin-bottom: 5px; }

    .project-caption {
        text-decoration: none;
        background: #494646;
        color: #fff;
        padding: 15px 20px;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    } */
#contacto { background-image: linear-gradient(to right, var(--dark-color), #201e19); color: #fff; }
#contacto h2 { color: #fff; }
#contacto p { color: #fff; text-align: center; max-width: 700px; margin: 0 auto 40px;}
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #fff;
    background: #F2F0EB;
    border-radius: 5px;
    font-family: inherit;
}
.form-group textarea { resize: vertical; }
.form-btn-container {
    text-align: center;
    margin-top: 20px;
}
.btn-dark { background: #f3ba00; color: var(--dark-color); }
.btn-dark:hover { background: #e6c06b; color: var(--dark-color)}



/* --- Brochure Section --- */
#brochure {
    background: #e6c06b;
    color: #111;
    padding: 48px 0;
    text-align: center;
}
.brochure-title {
    margin-bottom: 24px;
}
.brochure-btn {
    background: #111;
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
    transition: background 0.3s;
}
.brochure-btn:hover {
    background: #333;
}

/* --- WhatsApp Bubble --- */
#whatsapp-bubble {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: #111;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.3s;
}
#whatsapp-bubble:hover {
    background: #333;
}

/* --- Footer --- */
.main-footer {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 40px 0;
    text-align: center;
}
.main-footer address { font-style: normal; margin-bottom: 20px; }
.footer-social a { color: #fff; margin: 0 10px; text-decoration: none; font-size: 1.5rem; }
.footer-social a img{ width: 32px; }
.footer-email {text-decoration: none; color: #fff;}


/* --------------------Style the list to remove bullets and default padding 
.project-list {
  list-style-type: none;
  padding: 0;
  display: flex; /* Optional: to display cards side-by-side 
  gap: 20px;     /* Optional: adds space between cards 
}

/* Style the anchor tag to behave like a block and remove underline 
.project-card {
  display: block;
  text-decoration: none;
  color: inherit; /* Makes the text color normal 
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden; /* Ensures the image corners are rounded 
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Adds a subtle shadow on hover 
}

/* Make sure the image fills the width of the card 
.project-card img {
  width: 100%;
  display: block; /* Removes any extra space below the image 
}

/* Add some padding to the text content 
.project-caption {
  padding: 16px;
}

/* --- Media Queries (Mobile-First) --- -------------------------*/


@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .nosotros-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* .proyectos-grid { grid-template-columns: repeat(3, 1fr); }
    .proyectos-card p { color: #fff; padding: 0 20px 0 20px; height: auto; min-height: fit-content;} */
    
}

@media (max-width: 1024px) {
    .proyectos-grid {
    flex-wrap: wrap;
    gap: 30px;
    }
    /* .proyectos-grid { grid-template-columns: repeat(3, 1fr); }
    .proyectos-card p { color: #fff; padding: 0 20px 0 20px; height: auto; min-height: fit-content;} */
    
}

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    /* .services-grid { grid-template-columns: repeat(3, 1fr); }
    .proyectos-grid { grid-template-columns: repeat(3, 1fr); } */
    /* .projects-grid { grid-template-columns: repeat(2, 1fr); } */
}

/* @media (min-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
} */

@media (max-width: 767px) {
    .main-nav { 
        display: none;
        position: absolute;
        top: 81px; /* Altura del header */
        left: 0;
        width: 100%;
        background: var(--dark-color);
        flex-direction: column;
        text-align: center;
        border-top: 1px solid #ddd;
     }
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%}
    .main-nav li { display: block; margin: 15px 0; }
    
    .hamburger { display: block; }

    
}