/* ============================================== */
/* VARIABLES DE DISEÑO (Basadas en tu color original: #996633) */
/* ============================================== */
:root {
  --color-principal: #996633; /* Tu color marrón/café original */
  --color-secundario: #1a1a1a; /* Negro para títulos y contraste */
  --color-fondo: #ffffff; /* Fondo blanco puro */
  --color-texto: #444444; /* Gris oscuro para el cuerpo del texto */
  --color-acento-claro: #f8f8f4; /* Fondo crema muy sutil */
  
  --font-serif: Georgia, serif; 
  --font-sans: Arial, sans-serif;
}

/* ============================================== */
/* RESET GENERAL Y BASE */
/* ============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans); 
  color: var(--color-texto); 
  background-color: var(--color-fondo);
  padding-top: 56px; /* Ajuste para el navbar fijo */
}

/* TÍTULOS GENERALES - Estilo grande y formal */
h1, h2, h3, h4 {
  font-family: var(--font-serif); 
  font-weight: 700;
  color: var(--color-secundario);
}

/* ============================================== */
/* ENCABEZADO Y NAVEGACIÓN (Bootstrap) */
/* ============================================== */
.navbar {
  background-color: var(--color-secundario) !important; 
}

.navbar-brand {
    color: var(--color-principal) !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
  color: var(--color-fondo) !important;
  font-weight: 400;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--color-principal) !important; 
}

/* Títulos principales de sección con línea divisoria */
.main-title-center {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
    color: var(--color-principal); 
}

.main-title-center::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-secundario); 
    margin: 8px auto 0;
}


/* ============================================== */
/* ESTILO HERO (Sección Principal) */
/* ============================================== */
.hero {
    position: relative;
    height: 80vh; /* Altura de la ventana */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Oscurece la imagen de fondo */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-fondo);
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-fondo);
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-principal);
    color: var(--color-fondo);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.btn-hero:hover {
    background-color: #7a5129; /* Tono más oscuro del principal */
}

/* ============================================== */
/* ESTILO PERFIL EMPRESARIAL (¡MODIFICADO!) */
/* ============================================== */
.perfil {
    position: relative; /* Clave para el overlay */
    padding: 80px 20px; 
    color: var(--color-fondo); /* Texto blanco */
    
    /* IMAGEN DE FONDO */
    /* Asegúrate de que la ruta 'imagenes/fondo_perfil.jpg' sea correcta */
    background: url('imagenes/04.jpg') center center no-repeat; 
    background-size: cover;
    overflow: hidden; 
}

/* OVERLAY (Capa Oscura Semitransparente para legibilidad) */
.perfil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Negro al 65% */
    z-index: 1; 
}

/* Texto y botones por encima del overlay */
.perfil > * {
    position: relative;
    z-index: 2; 
}

.perfil h2 {
    color: var(--color-principal); /* Título en color acentuado */
    margin-bottom: 20px;
}

.perfil p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-fondo); /* Asegura que el párrafo sea blanco */
}


/* ============================================== */
/* SERVICIOS CON TAMAÑO UNIFORME (¡CAMBIOS APLICADOS!) */
/* ============================================== */
.services-section {
  background-color: var(--color-fondo); 
  padding: 60px 0;
  text-align: center;
}

/* 🔹 Cada tarjeta */
.service-card {
  background-color: var(--color-fondo);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; 
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(153, 102, 51, 0.3); 
}

/* 🔹 IMAGEN: Clase CLAVE para altura y uniformidad */
.service-image {
  height: 220px; 
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

/* 🔹 Títulos y texto */
.service-card .card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-secundario);
  margin: 15px 0 10px;
}

.service-card .card-text {
  font-size: 1rem;
  color: var(--color-texto);
  margin: 0 20px 20px;
  line-height: 1.6;
}

/* ============================================== */
/* FORMULARIO Y CONTACTO FLOTANTE */
/* ============================================== */

/* Estilo del formulario flotante */
.formulario-flotante {
    position: fixed;
    bottom: 300px; 
    right: 30px;
    width: 300px;
    background-color: var(--color-secundario);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.formulario-flotante h3 {
    color: var(--color-principal) !important;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.formulario-flotante .form-control {
    border-radius: 5px;
}

.formulario-flotante .btn-warning {
    background-color: var(--color-principal);
    border-color: var(--color-principal);
    color: var(--color-fondo);
    font-weight: bold;
    transition: background-color 0.2s;
}

.formulario-flotante .btn-warning:hover {
    background-color: #7a5129;
    border-color: #7a5129;
}

/* Estilos de los íconos de contacto (debajo del formulario) */
.contact-icons {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-icons a {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.contact-icons a:hover {
    transform: scale(1.1);
}

.contact-icons img {
    width: 100%;
    height: 100%;
}

/* Tooltips (Burbujas de texto) */
.contact-icons a[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%; 
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-secundario);
    color: var(--color-fondo);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    margin-right: 10px;
    font-size: 0.9rem;
}


/* ============================================== */
/* PIE DE PÁGINA (Footer) */
/* ============================================== */
/* Puedes re-estilizar tu footer aquí si lo deseas. Por ahora, queda vacío
   ya que todos tus elementos están flotando o al final del body */


/* ============================================== */
/* RESPONSIVE */
/* ============================================== */
@media (max-width: 992px) {
    /* Ajuste de formulario en tabletas */
    .formulario-flotante {
        right: 20px;
        width: 280px;
    }
    .contact-icons {
        right: 20px;
    }
}

@media (max-width: 768px) {
    /* Ajuste en el tamaño de la imagen de servicios */
    .service-image {
        height: 180px;
    }
    
    /* Ajuste en el HERO */
    .hero {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    /* Ajuste de formulario en móviles */
    .formulario-flotante {
        bottom: 220px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }
    
    /* Mover los íconos de contacto para que no choquen con el formulario */
    .contact-icons {
        bottom: 80px; 
        flex-direction: row; 
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .contact-icons a[data-tooltip]:hover::after {
        content: none; /* Deshabilitar tooltips en móvil */
    }
}

/* ====== Misión y Visión ====== */
#mision-vision .card {
  background-color: #050505;
  border-radius: 15px;
  transition: all 0.3s ease-in-out;
}

#mision-vision .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#mision-vision h3 {
  color: #203385; /* Azul corporativo */
}

#mision-vision p,
#mision-vision li {
  color: #333; /* Texto gris oscuro */
  font-size: 1rem;
}

#mision-vision .icono {
  background-color: #f0f3f7;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
}

#mision-vision .icono i {
  font-size: 2rem;
  color: #001F3F;
}

.services-section {
  /* background-color: var(--color-fondo);  <-- eliminar esta línea */
  padding: 60px 0;
  text-align: center;
}

