/* =========================
   PALETA ALBAVALOR
========================= */
:root {
    --blue-main: #273568;
    --green-main: #9BC11C;
    --grey-light: #F5F6FA;
    --text-dark: #202230;
    --text-muted: #6B6F80;
    --white: #FFFFFF;
}


/* =========================
   BASIC RESET
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ahora sí, fuera del bloque del * */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================
   GENERAL LAYOUT
========================= */
.container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

 /* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo img {
    height: 70px;
}

.nav a {
    margin-left: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--blue-main);
}

.nav a:hover {
    color: var(--green-main);
}

/* =========================
   LANGUAGE BUTTONS
========================= */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--blue-main);
    background: var(--white);
    color: var(--blue-main);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--blue-main);
    color: var(--white);
}

.lang-btn.active {
    background: var(--blue-main);
    color: var(--white);
}


/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(135deg, var(--blue-main), #1b264a);
  color: var(--white);
  padding: 3rem 0;   /* antes 6rem 0 */
}


.hero-content {
    max-width: 1000px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #E4E7F2;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


/* =========================
   BOTONES
========================= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--green-main);
    color: var(--blue-main);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* =========================
   SECCIONES
========================= */
.section {
    padding: 4rem 80px;
}

.section-grey {
    background: var(--grey-light);
}

.section h2 {
    font-size: 2.2rem;
    color: var(--blue-main);
    margin-bottom: 0.75rem;
}

.section-intro {
    max-width: 650px;
    margin-bottom: 2rem;
    color: var(--text-muted);
}


/* =========================
   GRID (AUTO-AJUSTABLE)
========================= */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* =========================
   LLAVE VERDE - WHO WE ARE
========================= */
.highlight-box {
    position: relative;
    padding-left: 2rem;
}

.highlight-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 4px;
    background-color: var(--green-main);
    border-radius: 2px;
}

/* =========================
   CARDS (PORTFOLIO)
========================= */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--blue-main);
    font-size: 1.1rem;
}


/* =========================
   LINKS EN PROYECTOS
========================= */
.card h3 a {
    color: var(--blue-main);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.card h3 a:hover {
    color: var(--green-main);
}

/* TEXTO JUSTIFICADO */
.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: justify;
    hyphens: auto;
}

/*Link de texto*/
a {
  color: inherit;
}

a:hover {
  color: #00aa66;
}

/* =========================
   TAGS
========================= */
.tag {
    margin-top: auto;
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #E6F1D0;
    color: var(--blue-main);
}


/* =========================
   DOS COLUMNAS
========================= */
.two-columns {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}


/* =========================
   CONTACTO
========================= */
.contact-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid var(--green-main);
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    display: block;
    color: var(--blue-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.contact-item span {
    color: var(--text-dark);
    font-size: 1rem;
}

#contact-email {
    cursor: pointer;
    color: var(--blue-main);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.3s ease;
}

#contact-email:hover {
    color: var(--green-main);
    text-decoration-color: var(--green-main);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #141a33;
    color: #C5C9E0;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-box {
        padding: 2rem 1.5rem;
    }
}
