* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: #FDF4E3; /* Fondo beige cálido */
  color: #3E3E3E; /* Gris cálido */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV BAR SUPERIOR */
.navbar {
  background-color: #E57F4C; /* Naranja tenue */
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-nav {
  list-style: none;
  display: flex;
}

.navbar-nav li {
  margin-left: 20px;
}

.navbar-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.navbar-brand {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

/*BOTONES DE LA NAV-BAR*/
.navbar-nav a.btn-login {
  background-color: #FFD8A8; /* Crema suave */
  color: #3E3E3E;
}

.navbar-nav a.btn-login:hover {
  background-color: #FFC085;
}

.navbar-nav a:not(.btn-login):hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* CONTENIDO PRINCIPAL */
.main-content {
  padding: 40px 0;
}

/* LOS TITULOS*/
.main-title {
  text-align: center;
  font-size: 2.8rem;
  color: #D96C2A; /* Naranja cálido */
  margin-bottom: 20px;
}

/* DESCRIPCIÓN */
.description {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #5C5C5C;
}

/* SECCIÓN DE GUÍAS (DEL INDEX.HTML*/
.guide-section {
  background-color: #FFF8EF; /* Fondo crema */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.guide-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #E57F4C;
  margin-bottom: 30px;
}

/* TARJETAS (IMAGENES) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.guide-card {
  border: 1px solid #EBDCC3;
  border-radius: 8px;
  overflow: hidden;
  background-color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.guide-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #C7632A;
}

.card-content ul {
  list-style-position: inside;
  padding-left: 5px;
}

.card-content li {
  margin-bottom: 8px;
}

/* ESTILOSFORMULARIOS DE LOGIN, PERFIL Y REGISTRO */
.form-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background-color: #FFF8EF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #5C5C5C;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D8C7B0;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #FFF;
}

.form-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background-color: #E57F4C;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-btn:hover {
  background-color: #D36F3E;
}

.form-error {
  background-color: #FEE0E0;
  color: #7B1E1E;
  border: 1px solid #F5C6C6;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.form-switch {
  margin-top: 20px;
  font-size: 0.95rem;
}

.form-switch a {
  color: #D96C2A;
  text-decoration: none;
  font-weight: bold;
}

.form-switch a:hover {
  text-decoration: underline;
}

/* ESTILOS CRUD DE CONTACTOS */
.crud-container {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-top: 20px;
  border: 1px solid #EBDCC3;
}

/* FORMULARIO DE AGREGAR EDITAR DE CONTACTOS*/
.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px dashed #EBDCC3;
}

input.crud-input {
  padding: 12px;
  border: 2px solid #D8C7B0;
  border-radius: 6px;
  flex: 1;
  min-width: 220px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

input.crud-input:focus {
  border-color: #E57F4C;
}

/* BOTONES DEL CRUD */
button.btn-action {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s, background-color 0.2s;
}

button.btn-action:hover {
  transform: translateY(-2px);
}

.btn-add {
  background-color: #E57F4C; /* Naranja principal */
}

.btn-add:hover {
  background-color: #d35400;
}

.btn-cancel {
  background-color: #7f8c8d; /* Gris */
}

.btn-cancel:hover {
  background-color: #2c3e50;
}

/* BOTONES PEQUEÑOS (TABLA) */
.btn-small {
  padding: 6px 12px;
  font-size: 0.9rem;
  margin: 0 2px;
}

.btn-edit {
  background-color: #f39c12; /* Amarillo Naranja */
  color: #fff;
}

.btn-delete {
  background-color: #e74c3c; /* Rojo */
}

/* TABLA DE CONTACTOS */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

thead {
  background-color: #E57F4C;
  color: white;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  font-weight: 700;
  letter-spacing: 0.5px;
}

tbody tr:hover {
  background-color: #FFF8EF; /* Hover suave color crema */
}

/* GOOGLE SIGN-IN BUTTON STYLES */ 
/* SEPARADOR "O" */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #666;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.separator span {
    padding: 0 10px;
    font-weight: bold;
    font-size: 14px;
}

/* AJUSTE PARA QUE GOOGLE LLENE EL ESPACIO EN EL CONTENEDOR */
.g_id_signin {
    margin-bottom: 15px;
    width: 100%;
}

/* CENTRAR EL BOTÓN DE GOOGLE */
.google-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

/* ASEGURAR QUE EL BOTÓN DE GOOGLE RESPONDA AL FLEXBOX */
.g_id_signin {
    display: block;
}











/* FORZAR DISEÑO DIVIDIDO */
.login-split-wrapper {
    display: flex !important;
    flex-direction: row !important; /* Esto pone un panel al lado del otro */
    max-width: 950px !important;
    margin: 40px auto !important;
    background-color: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    min-height: 600px !important;
}

/* LADO IZQUIERDO (LOGO) */
.login-visual-panel {
    flex: 1 !important;
    background-color: #ffffff !important; /* Fondo blanco para el logo */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px !important;
    border-right: 1px solid #f0f0f0 !important;
}

/* LADO DERECHO (FORMULARIO CON COLOR) */
.login-form-panel {
    flex: 1.2 !important;
    background: linear-gradient(160deg, #ffffff 0%, #fffaf0 100%) !important;
    padding: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* ESTILOS DE TEXTO (Basados en tu última imagen) */
.greeting-text {
    font-family: 'Roboto Slab', serif !important;
    color: #E57F4C !important;
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
}

.welcome-back {
    font-family: 'Lilita One', cursive !important;
    color: #4a3f35 !important; /* Tono café oscuro de tu imagen */
    font-size: 2.8rem !important;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

.login-subtitle {
    font-family: 'Roboto Slab', serif !important;
    font-size: 0.85rem !important;
    color: #888 !important;
    letter-spacing: 1px !important;
    margin-bottom: 30px !important;
}

/* INPUTS ESTILO MODERNO */
.form-group-new {
    margin-bottom: 20px !important;
    border-bottom: 1px solid #ddd !important;
}

.form-group-new label {
    display: block !important;
    color: #E57F4C !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
}

.form-group-new input {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    outline: none !important;
}

.btn-integrated {
    background: #E57F4C !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}











/* =========================================
   AJUSTES FINALES DEL PANEL IZQUIERDO
   ========================================= */

/* 1. HACE EL LOGO MÁS PEQUEÑO (Ajuste del tamaño) */
.login-visual-panel .main-logo-welcome {
    /* Ajusta este valor (ej. de 140px a 120px) hasta que tenga el tamaño que te guste */
    width: 350px !important;
    height: auto !important; /* Mantiene la proporción */
    margin-bottom: 100px !important; /* Espacio con el texto "Bienvenido" */
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    /* mix-blend-mode: multiply; /* Si tiene fondo blanco y quieres intentar transparente */
}

/* 2. COLOR PARA "BIENVENIDO" */
.login-visual-panel .visual-title {
    color: #E57F4C !important; /* Color naranja de tu marca */
    font-weight: bold !important;
    margin-bottom: 5px !important;
}

/* 3. COLOR PARA "INICIA SESIÓN PARA MANTENERTE SEGURO" */
.login-visual-panel .visual-text {
    color: #E57F4C !important; /* Mismo color naranja */
    opacity: 0.9 !important; /* Un poco de transparencia opcional */
}

/* 4. SOMBRA SUTIL (OPCIONAL) */
.login-split-wrapper {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}













