:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --background: #ffffff;
    --background-light: #f8fafc;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --yellow: #f5c02c;
    --green:#0b7544;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #0d2c5a;
    box-shadow: var(--background);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(4, 8, 116, 0.238);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    overflow: hidden; 
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.logo-placeholder img {
    width: 100px;
    height: 100px;
    object-fit: cover;     
    object-position: center center;
    display: block;
}

.logo-section h1 {
    font-size: 1.5rem;
    color: var(--background);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--background );
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--yellow);
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================================= */
/*            🔽 MENÚ HAMBURGUESA + RESPONSIVE               */
/* ========================================================= */

.hamburger {
    display: none;
    flex-direction: column;
    width: 40px;
    height: 25px;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 4px;
    transition: 0.3s;
}

/* Animación del ícono */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    /* Menú responsive que baja desde arriba */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        background: #0d2c5a;
        width: 100%;
        flex-direction: column;
        align-items: center; /* Centrado horizontal */
        justify-content: center; /* Centrado vertical */
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;

        /* Animación suave */
        transition: max-height 0.5s ease, padding 0.5s ease;
    }

    .nav.active {
        max-height: 600px; /* Suficiente para todos los elementos */
        padding: 1.5rem 0;
    }

    .nav-link {
        width: 100%;
        padding: .1rem 0; /* Más espacio vertical */
        text-align: center; /* Centrado del texto */
        font-size: 1.3rem; /* Ligeramente más grande */
        transition: transform 0.3s, color 0.3s;
    }

    .nav-link:hover {
        transform: scale(1.05); /* Pequeño efecto zoom */
    }

    .btn-primary {
        width: 90%;
        margin: 0.5rem auto;
        transition: transform 0.3s;
    }

    .btn-primary:hover {
        transform: translateY(-2px) scale(1.03); /* Animación extra */
    }
}

.btn-panel {
  display: inline-flex;             /* Permite alinear íconos y texto si los hay */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;                      /* Espacio entre ícono y texto */
  padding: 0.7rem 1.5rem;           /* Espaciado interno */
  font-size: 1rem;                   /* Tamaño de texto */
  font-weight: bold;
  color: #fff;                       /* Texto blanco */
  background-color: #007BFF;         /* Azul moderno */
  border: none;
  border-radius: 8px;                /* Bordes redondeados */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Sombra suave */
}

.btn-panel:hover {
  background-color: #0056b3;         /* Azul más oscuro al pasar el mouse */
  transform: translateY(-2px);       /* Leve elevación al hover */
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.btn-panel:active {
  transform: translateY(0);          /* Presionado vuelve a su posición */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}




