@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

:root {
    --white: #f9f9f9;
    --green: #EF4B24;
    --green-light: #f49954;
    --black: #36383F;
    --grey: #85888C;
}

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

body {
    font-family: "Poppins", sans-serif;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ---------- HEADER ---------- */
.header {
    background: linear-gradient(180deg, #EF4B24, #f49954);
    box-shadow: 1px 1px 5px 0px var(--grey);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99999;
}

.logo {
    display: inline-block;
    color: var(--white);
    font-size: 60px;
    margin-left: 10px;
}

.nav {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--green);
    overflow: hidden;
    max-height: 0;
    transition: max-height .5s ease-out;
}

.menu a {
    display: block;
    padding: 30px;
    color: var(--white);
}

.menu a:hover {
    background-color: var(--green-light);
}

.hamb {
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}

.hamb-line {
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

.hamb-line::before,
.hamb-line::after {
    background: var(--white);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamb-line::before {
    top: 5px;
}

.hamb-line::after {
    top: -5px;
}

.side-menu {
    display: none;
}

.side-menu:checked ~ nav {
    max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top: 0;
}

.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top: 0;
}

/* ---------- CONTACTO ---------- */
.Oficinas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px;
    width: 100%;
    flex-wrap: nowrap; /* evita que se reordenen en pantallas grandes */
  }
  
  .Oficinas .datos {
    flex: 0 1 420px;    /* ancho máximo para el texto */
    margin: 0;
    /*text-align: center; /* centra el texto del bloque */
  }
  
  .Oficinas img {
    flex: 0 0 160px;    /* ancho fijo para la imagen */
    max-width: 100%;
    height: auto;
    display: block;
    align-self: center;
  }
  
  /* En pantallas pequeñas, apilar y centrar todo */
  @media (max-width: 768px) {
    .Oficinas {
      flex-direction: column;
      gap: 8px;
    }
    .Oficinas .datos { width: 100%; }
    .Oficinas img { margin: 0 auto; }
  }
  
/* ---------- FORMULARIO ---------- */
.form-content {
    margin: 20px auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 30px;
    width: 100%;
    max-width: 600px; /* Antes era fijo en 1200px */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.form-content h2 {
    color: black;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

label {
    font-size: 17px;
    color: black;
    margin-bottom: 10px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    width: 100%;
}

.btn {
    background-color: #f49954;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #EF4B24;
}

/* ---------- MENU ADAPTATIVO ---------- */
@media (min-width: 1412px) {
    .nav {
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
    }

    .menu li {
        float: left;
    }

    .menu a:hover {
        background-color: transparent;
        color: var(--black);
    }

    .hamb {
        display: none;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .form-content {
        max-width: 90%;
        padding: 20px;
    }

    .form-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .Oficinas {
        flex-direction: column;
        text-align: center;
    }

    .datos {
        margin: 0;
        width: 100%;
    }

    .form-content {
        padding: 15px;
    }

    input, textarea {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 150px !important;
    }

    .form-content h2 {
        font-size: 18px;
    }

    .btn {
        font-size: 14px;
        padding: 8px;
    }
}
