/* ======================
   ESTILO GENERAL
====================== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
}

/* ======================
   NAVBAR CORPORATIVO
====================== */
.navbar {
    background: #0056a3;            /* Azul corporativo CGE */
    padding: 14px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.navbar a:hover {
    color: #ffe680;                 /* Amarillo suave */
    text-decoration: underline;
}

/* Usuario autenticado */
p {
    padding-left: 20px;
    color: #004d8c;
    font-weight: 600;
}

/* =========================
   CONTENIDO GENERAL
========================= */
.contenido {
    padding: 40px;
}

/* TITULOS */
h1 {
    color: #0056a3;
    font-size: 38px;
    border-left: 6px solid #ffc107;
    padding-left: 12px;
}

/* LISTA DE MENSAJES */
ul {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 20px;
    margin: 20px;
    border-radius: 5px;
    list-style: none;
}

/* BOTONES GENERALES */
a.boton {
    background: #0056a3;
    padding: 10px 14px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

a.boton:hover {
    background: #003f73;
}

/* FORMULARIOS */
input, select, textarea {
    padding: 10px;
    border: 1px solid #bfc7d1;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 15px;
    font-size: 15px;
}

button, input[type=submit] {
    background: #0056a3;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover, input[type=submit]:hover {
    background: #003f73;
}

.carousel {
    width: 100%;
    max-width: 1300px;                /* ✔ Limita el ancho para verse más elegante */
    height: 300px;                    /* ✔ Altura controlada */
    margin: 0 auto 40px auto;         /* ✔ Centrado */
    overflow: hidden;
    border-radius: 12px;              /* ✔ Bordes redondeados premium */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* ✔ Sombra suave */
    position: relative;
    background: #000;                 /* ✔ Fondo si la imagen no llena el espacio */
}

.slides {
    display: flex;
    height: 100%;
    width: 300%;                      /* 3 imágenes → 300% */
    animation: slide 12s infinite;    /* ✔ Animación automática */
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: contain;              /* ✔ Muestra TODA la imagen sin cortar */
    background: #000;                 /* ✔ Mantiene contraste profesional */
}

/* Animación suave */
@keyframes slide {
    0%   { margin-left: 0; }
    33%  { margin-left: -100%; }
    66%  { margin-left: -200%; }
    100% { margin-left: 0; }
}

/* ---- SECCIONES ---- */
.info, .contacto {
    width: 80%;
    margin: 40px auto;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.info h2, .contacto h2 {
    color: #0044ff;
    margin-bottom: 10px;
}

/* ======================
   FORMULARIO DE LOGIN
====================== */

.login-container {
    width: 100%;
    height: 100vh;                     /* Ocupa toda la pantalla */
    display: flex;
    justify-content: center;           /* Centrar horizontal */
    align-items: center;               /* Centrar vertical */
}

.login-box {
    background: #ffffff;               /* Fondo blanco elegante */
    padding: 35px 40px;
    width: 380px;
    border-radius: 12px;               /* Bordes redondeados */
    box-shadow: 0 4px 20px rgba(0,0,0,0.12); /* Sombra profesional */
}

.login-box h1 {
    color: #0056a3;
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
}

.login-box label {
    font-weight: bold;
    color: #003f73;
}

.login-box input {
    margin-bottom: 18px;
}

.login-btn {
    width: 100%;
    background: #0056a3;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.login-btn:hover {
    background: #003f73;
}

.volver-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    text-decoration: none;
    color: #0056a3;
}

.volver-link:hover {
    text-decoration: underline;
}

.register-container {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.register-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #0056a3;
    margin-bottom: 20px;
}

.register-btn {
    background: #0056a3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
}

.register-btn:hover {
    background: #003f7d;
}

.btn-volver {
    display: block;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    color: #0056a3;
    text-decoration: none;
}

.btn-volver:hover {
    text-decoration: underline;
}

/* ======================
   SECCIÓN SERVICIOS
====================== */

.servicios {
    width: 90%;
    margin: 50px auto;
    text-align: center;
}

.servicios h2 {
    color: #0056a3;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.servicio-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

.servicio-card h3 {
    color: #003f73;
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.servicio-card p {
    color: #004d8c;
    font-size: 15px;
    margin-top: 5px;
}

/* ======================
   NUESTRO PROCESO
====================== */

.proceso-section {
    width: 90%;
    margin: 60px auto;
    text-align: center;
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.proceso-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.proceso-card:hover {
    transform: translateY(-5px);
}

.proceso-numero {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background: #0056a3; /* azul CGE */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.proceso-card h3 {
    color: #003f7d;
    margin-bottom: 10px;
}

.proceso-card p {
    color: #333;
    font-size: 15px;
}


/* ======================
   NUESTROS VALORES
====================== */

.valores-section {
    width: 90%;
    margin: 60px auto;
    text-align: center;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.valor-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
}

.valor-icon {
    font-size: 40px;
    color: #0056a3;  /* Azul CGE */
    margin-bottom: 15px;
}

.valor-card h3 {
    color: #003f7d;
    margin-bottom: 10px;
    font-size: 20px;
}

.valor-card p {
    color: #333;
    font-size: 15px;
}

/* ======================
   CONTACTO A PANTALLA COMPLETA
====================== */

.contacto-section-full {
    width: 100%;
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.contacto-box {
    width: 100%;
    max-width: 1200px; /* límite elegante */
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contacto-info {
    flex: 1;
}

.contacto-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #003f73;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contacto-icon {
    font-size: 24px;
}

.contacto-item p {
    font-size: 18px;
    color: #004d8c;
}

/* WhatsApp dentro del cuadro */
.contacto-whatsapp img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.contacto-whatsapp img:hover {
    transform: scale(1.1);
}