/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
header {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #004080;
    color: #ff9900;
}

/* Login form */
.login-form {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 260px;
    z-index: 9999;
}

.login-form.visible {
    display: flex;
}

.login-form h4 {
    margin-bottom: 10px;
    color: #003366;
    text-align: center;
}

.login-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
}

.login-form button {
    background-color: #003366;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.login-form button:hover {
    background-color: #0055aa;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003366;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    height: auto;
}

.img-hero {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
    max-width: 90%;
}

.overlay h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1.1rem;
}

/* Consulta de Guía */
form input[type="number"] {
    font-size: 1.1rem;
    padding: 10px;
}

/* Misión y Visión */
.mision-vision {
    padding: 60px 20px;
    background-color: #ffffff;
    max-width: 1200px;
    margin: auto;
}

.mision-vision .seccion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.mision-vision .seccion.vision {
    flex-direction: row-reverse;
}

.mision-vision .texto {
    flex: 1;
    min-width: 280px;
}

.mision-vision .texto h2 {
    font-size: 2rem;
    color: #003b70;
    margin-bottom: 15px;
}

.mision-vision .texto p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.mision-vision .imagen {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.mision-vision .imagen img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
    object-position: center center;
}

/* Servicios */
.servicios {
    background-color: #f7f7f7;
    padding: 50px 20px;
}

.carousel-servicios {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    width: 100%;
}

.carousel-servicios::-webkit-scrollbar {
    height: 8px;
}

.carousel-servicios::-webkit-scrollbar-thumb {
    background-color: #003366;
    border-radius: 10px;
}

.item-servicio {
    min-width: 240px;
    flex: 0 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s;
}

.item-servicio:hover {
    transform: translateY(-5px);
}

.item-servicio img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.item-servicio p {
    font-weight: 500;
    font-size: 1rem;
    color: #003366;
}

.btn-left, .btn-right {
    background: #003366;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.btn-left { left: 10px; }
.btn-right { right: 10px; }

/* Contacto */
.contacto {
  background: linear-gradient(135deg, #003366, #005599);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  font-size: 1.1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contacto a {
  color: #ffdd57;
  text-decoration: none;
  font-weight: bold;
}

.contacto a:hover {
  text-decoration: underline;
}

.whatsapp-button {
  margin-top: 20px;
}

.whatsapp-button a {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.whatsapp-button a:hover {
  background-color: #1ebc59;
}

.whatsapp-icon {
  width: 18px !important;
  height: 18px !important;
  margin-right: 10px;
  object-fit: contain;
  flex-shrink: 0;
}



/* Responsive */
@media (max-width: 768px) {
    .overlay h1 {
        font-size: 1.6rem;
    }

    .overlay p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        background: #003366;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .mision-vision .seccion,
    .mision-vision .seccion.vision {
        flex-direction: column;
        text-align: center;
    }

    .login-form {
        right: 10px;
        top: 70px;
        width: 90%;
    }

    .btn-left, .btn-right {
        display: none;
    }
}
