/* GENERAL */
body {
  margin: 0;           
  padding: 0;          
  width: 100%;         
  height: 100%;        
  min-height: 100vh;   
  box-sizing: border-box;
}

@font-face {
    font-family: 'GaretBook';
    src: url('fonts/Garet-Book.otf') format('opentype');
}
@font-face {
    font-family: 'GaretHeavy';
    src: url('fonts/Garet-Heavy.ttf') format('truetype');
}

body {
    margin: 0;
    font-family: 'GaretBook', sans-serif;
    background: #fff;
    color: #333;
}

h2, h3 {
    font-family: 'GaretHeavy', sans-serif;
    color: #6b1e9c;
}

.section {
    padding: 60px 10%;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 10%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

header .logo img {
    height: 50px;
}

header nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #6b1e9c;
    transition: 0.3s;
}

header nav ul li a:hover {
    color: #ff6f61;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* SECCIONES */
.content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 100px;
}

.content.reverse {
    flex-direction: row-reverse;
}

.content img {
    width: 40%;
    border-radius: 12px;
}

.servicios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.servicio img {
    width: 200px;
    margin-bottom: 10px;
}


#que-hago .content--quehago {
  display: grid;
  grid-template-columns: 3fr 1fr;   
  gap: 2rem;
  align-items: center;
}


#que-hago .ilustracion img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* PORTFOLIO */
.portfolio h2 {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio .grid .item {
    background: #f9d342;
    height: 150px;
    border-radius: 8px;
}

/* CONTACTO */
.contacto {
    text-align: center;
    background: #f7f7f7;
    padding: 80px 10%;
}

.contacto form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    gap: 15px;
}

.contacto input, .contacto textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.contacto button {
    background: #6b1e9c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.contacto button:hover {
    background: #ff6f61;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header nav ul {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        right: 10%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 10px;
        border-radius: 6px;
    }
    header nav ul.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .content {
        flex-direction: column;
        text-align: center;
    }
    .content img {
        width: 100%;
    }
    .servicios {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .servicios {
        grid-template-columns: 1fr;
    }
    .portfolio .grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop grande: texto 2 / imagen 1, con tope */
#que-hago .content--quehago{
  display:grid; gap:2.4rem; align-items:center;
  grid-template-columns: 2fr 1fr;
}
#que-hago .ilustracion{ justify-self:end; max-width:560px; width:100%; }
#que-hago .ilustracion img{ width:100%; height:auto; display:block; object-fit:contain; }

/* Desktop/Tablet mediano (900–1200px): imagen un poco más ancha */
@media (max-width:1200px){
  #que-hago .content--quehago{ grid-template-columns: 3fr 2fr; }
  #que-hago .ilustracion{ max-width:480px; justify-self:center; }
}

/* Mobile: una columna; imagen arriba y más angosta */
@media (max-width:900px){
  #que-hago .content--quehago{ grid-template-columns:1fr; }
  #que-hago .ilustracion{ order:-1; max-width:420px; margin-inline:auto; }
}


/* 1) Menos aire vertical en TODAS las secciones */
.section{
  padding-block: 28px;      
  padding-inline: 20px;     
}

/* 2) Evitar que títulos/párrafos sumen “doble” espacio */
.section h1,
.section h2,
.section h3 { margin: 0 0 14px; }
.section p { margin: 0 0 12px; }

/* 3) Quitar márgenes sobrantes al inicio/fin de cada sección */
.section > :first-child { margin-top: 0 !important; }
.section > :last-child  { margin-bottom: 0 !important; }

/* 4) Ajuste fino en mobile (un poco más compacto) */
@media (max-width: 900px){
  .section{ padding-block: 20px; }
  #que-hago .ilustracion{ max-width:300px; justify-self:center; }
}
