/* styles.css */

/* ===== RESET BÁSICO ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== GENERAL ===== */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #d9dadc;
    color: #1a1a1b;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #f6c944;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1b;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #f6c944;
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 8px 15px;
}

.dropdown-menu li a {
    color: #1a1a1b;
    display: block;
}

.dropdown-menu li a:hover {
    background: #1a1a1b;
    color: #f6c944;
}

/* ===== MAIN ===== */
main {
    flex: 1;
    padding: 40px 20px;
    max-width: 800px;  
    margin: 0 auto;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

main h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* ===== LISTA DE SERVICIOS ===== */
.services-list {
    list-style: none; 
    padding-left: 0;
    margin-top: 20px;
}

.services-list li {
    margin-bottom: 15px;
}

.services-list li a {
    text-decoration: none;
    color: #1a1a1b;
    font-size: 1.2rem;
    padding: 12px 16px;
    display: block;
    border-left: 4px solid #f6c944; 
    transition: background 0.2s, padding-left 0.2s;
}

.services-list li a:hover {
    background: #f6c94420;
    padding-left: 20px;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a1b;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer a {
    color: #f6c944;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}

/* Lista de servicios con viñetas */
.services-list {
    list-style-type: disc; /* activa viñetas */
    margin-left: 20px;     /* espacio a la izquierda */
    padding-left: 0;
}

.services-list li {
    font-weight: bold;     
    margin-bottom: 10px;  
    font-family: 'Open Sans', sans-serif;
}


/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #414144; /* fondo oscuro */
    color: #d9dadc;           /* texto principal */
  }

header {
    background-color: #f6c944; /* header/footer oscuro */
  }

  footer {
    background-color: #121212; /* header/footer oscuro */
  }

  a {
    color: #f6c944;            /* links amarillos como acento */
  }

  a:hover {
    background-color: #f6c94420; /* hover suave */
    color: #d9dadc;
  }

  .banner {
    background-color: #f6c944 !important;
    color: #353535;
  }

  /* Lista de servicios */
  .services-list li a {
    border-left: 4px solid #f6c944; /* indicador visual amarillo */
    background-color: transparent;
  }

  .services-list li a:hover {
    background-color: #f6c94420;
  }

  .services-list li a {
    text-decoration: none;
    color: #d9dadc;
    font-size: 1.2rem;
    padding: 12px 16px;
    display: block;
    border-left: 4px solid #f6c944; 
    transition: background 0.2s, padding-left 0.2s;
}

}

/* Logo centrado en la página principal */
.main-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.main-logo img {
    max-width: 100%;
    height: auto;
    width: 300px; /* tamaño máximo en pantallas grandes */
}

@media (max-width: 768px) {
    .main-logo img {
        width: 200px; /* tamaño reducido en móviles */
    }
}

@media (max-width: 480px) {
    .main-logo img {
        width: 150px; /* tamaño reducido en pantallas pequeñas */
    }
}


/* Efecto moderno: pulso sutil del logo */
.main-logo img {
    max-width: 100%;
    height: auto;
    width: 300px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05); /* pequeño aumento de tamaño */
        opacity: 0.95;           /* leve cambio de opacidad */
    }
}

@media (max-width: 768px) {
    .main-logo img {
        width: 200px;
    }
}

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