/* ==========================================
   VARIABLES Y RESET
   ========================================== */
   :root {
    --color-primario: #3caf3c;   /* Verde principal */
    --color-secundario: #6b4aa1; /* Morado o violeta */
    --color-oscuro: #222;
    --color-claro: #f9f9f9;
    --color-blanco: #fff;
    --color-transparente: rgba(255, 255, 255, 0.7);
    --transition: 0.3s ease;
    --fuente-primaria: 'Poppins', sans-serif;
    /* Ejemplo de tamaños base: */
    --fs-h1: 4rem;
    --fs-h2: 3.5rem;
    --fs-h3: 2.5rem;
    --fs-base: 1.75rem;
    /* Puedes ajustar según tu preferencia */
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    /* Para que 1rem = 10px aprox. (opcional) */
    font-size: 62.5%; /* 10px de referencia si el navegador usa 16px */
  }
  
  body {
    font-family: var(--fuente-primaria);
    font-size: var(--fs-base); /* = 1rem -> ~ 10px si usas 62.5% en html */
    background-color: var(--color-claro);
    color: var(--color-oscuro);
    line-height: 1.5;
  }
  
  img,
  video {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  /* ==========================================
     HEADER / NAV
     ========================================== */
  .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-blanco);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .logo-container {
    display: flex;
    align-items: center;
  }
  
  .logo {
    width: 5rem; /* 50px equivale a 5rem si 1rem ~ 10px */
    margin-right: 1rem;
  }
  
  .site-name {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-primario);
  }
  
  /* Navegación principal */
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .main-nav ul {
    display: flex;
    gap: 1.5rem;
  }
  
  .main-nav a:hover {
    color: var(--color-secundario);
    transition: color var(--transition);
  }
  
  /* Hamburguesa oculta por defecto en desktop */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
  }
  
  .hamburger span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--color-oscuro);
    transition: background-color var(--transition);
  }
  
  /* Cuando .main-nav está activa en mobile */
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 6rem; /* altura aprox del header */
    right: 2rem;
    background: var(--color-blanco);
    padding: 2rem;
    gap: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  /* ==========================================
     SECCIÓN HERO
     ========================================== */
  .hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-blanco);
    overflow: hidden;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 60rem; /* ~600px si 1rem=10px */
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  
  .cta-button {
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    transition: background-color var(--transition);
    font-size: 1.4rem;
  }
  
  .cta-button:hover {
    background-color: var(--color-primario);
  }
  
  /* Fondo (imagen o video) */
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
  }
  
  .hero-background img,
  .hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
  }
  
  /* ==========================================
     QUIÉNES SOMOS
     ========================================== */
  .quienes-somos-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    background-color: var(--color-blanco);
  }
  
  .quienes-somos-section h2 {
    margin-bottom: 2rem;
    font-size: var(--fs-h1);
    text-transform: uppercase;
  }
  
  .qs-slider {
    position: relative;
    width: 100%;
    max-width: 120rem; /* 1200px */
    margin: 0 auto;
    overflow: hidden;
  }
  
  .qs-slide {
    width: 100%;
    display: none;
    padding: 2rem;
    box-sizing: border-box;
  }
  
  .qs-slide.active {
    display: block;
  }
  
  .qs-image {
    width: auto;
    height: 30rem;
    object-fit: cover;
    margin-top: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.3);
  }
  
  .qs-image1{
    display: block;
    margin: 1rem auto;
    width: auto;
    height: 30rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.3);
  }
  
  .qs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .qs-row.inverse {
    flex-direction: row-reverse;
  }
  
  .qs-text {
    flex: 1;
    min-width: 20rem;
  }
  
  .qs-text h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
  }
  
  .qs-text p {
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .qs-img {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .qs-img img {
    max-width: 30rem;
    height: auto;
    border-radius: 1rem;
  }
  
  .qs-miembros-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  .qs-miembros-carousel img {
    height: 10rem;
    width: auto;
    object-fit: contain;
    border-radius: 0.5rem;
  }
  
  .qs-dots {
    margin-top: 1rem;
    text-align: center;
  }
  .qs-dot {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 0.5rem;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color var(--transition);
  }
  .qs-dot.active {
    background-color: var(--color-secundario);
  }
  
  /* ==========================================
    SECCIÓN ESPECIALIZACIÓN (VIDEO FONDO)
     ========================================== */
  .especializacion-section {
    position: relative;
    min-height: 80vh;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .especializacion-content {
    display: flex;
    flex-direction: column; /* Mobile-first: una columna */
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
  }
  
  .especializacion-left {
    text-align: center;
    padding: 1rem;
  }
  
  .especializacion-right {
    display: flex;
    justify-content: center;
    position: relative;
  }
  
  /* Triángulo de esferas */
  .triangle-spheres-container {
    position: relative;
    width: 30rem;
    height: 30rem;
  }
  
  .triangle-spheres-container .sphere {
    position: absolute;
    width: 10rem;
    height: 10rem;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    box-shadow: 0 0 1.5rem rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition);
    text-align: center;
    color: #fff;
  }
  .triangle-spheres-container .sphere:hover {
    transform: scale(1.05);
  }
  
  .sphere-icon {
    width: 20rem;
    height: 20rem;
    object-fit: contain;
  }
  .sphere p {
    margin-top: 0.5rem;
    font-weight: bold;
  }
  
  .sphere-geologia {
    left: 0;
    bottom: 0;
  }
  .sphere-geofisica {
    right: 0;
    bottom: 0;
  }
  .sphere-geotecnia {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
  
  /* OVERLAY ESFERAS */
  .sphere-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  .sphere-overlay.show {
    visibility: visible;
    opacity: 1;
  }
  .overlay-content {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 60rem;
    width: 90%;
    position: relative;
    text-align: center;
    color: #333;
  }
  .close-overlay {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
  }
  
  /* ==========================================
     SERVICIOS
     ========================================== */
  .servicios-section {
    padding: 4rem 2rem;
    background: var(--color-claro);
    text-align: center;
  }
  
  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
    max-width: 120rem;
    margin: 2rem auto;
  }
  
  .servicio-card {
    position: relative;
    height: 25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-blanco);
    font-weight: bold;
    font-size: 1.6rem;
    text-decoration: none;
    border-radius: 1.5rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  
  .servicio-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background var(--transition);
  }
  
  .geotecnia {
    background-image: url("/img/photos/geotecnia.jpeg");
  }
  .geofisica {
    background-image: url("/img/photos/geofisica.jpeg");
  }
  .geologia {
    background-image: url("/img/photos/geologica.jpeg");
  }
  .perforacion {
    background-image: url("/img/photos/perforacion.jpeg");
  }
  .tele {
    background-image: url("/img/photos/tele.jpeg");
  }
  .asesoria {
    background-image: url("/img/photos/asesoria.png");
  }
  .lab {
    background-image: url("/img/photos/lab.jpeg");
  }
  .cursos {
    background-image: url("/img/photos/Cursos.png");
  }
  
  .servicio-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    text-transform: uppercase;
    transition: transform var(--transition);
  }
  
  .servicio-card:hover {
    transform: scale(1.08);
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.3);
  }
  
  .servicio-card:hover::after {
    background: rgba(60, 124, 60, 0.6);
  }
  
  .servicio-card:hover h3 {
    transform: translateY(-0.5rem);
  }
  
  /* ==========================================
     SECCIÓN CLIENTES (CARRUSEL)
     ========================================== */
  .clientes-section {
    padding: 2rem 2rem;
    background: var(--color-blanco);
    text-align: center;
    scroll-margin-top: 2.5rem;
  }
  
  .clientes-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform var(--transition);
  }
  
  .carousel-item {
    min-width: 20rem;
    max-width: 20rem;
    flex-shrink: 0;
    height: 10rem;
  }
  
  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primario);
    color: var(--color-blanco);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 2;
  }
  .prev {
    left: 0;
  }
  .next {
    right: 0;
  }
  
  /* ==========================================
  SECCIÓN BLOG
     ========================================== */
  .blog-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
    text-align: center;
  }
  
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
    max-width: 100rem;
    margin: 2rem auto;
  }
  
  .blog-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
  }
  
  .blog-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.3);
  }
  
  .blog-card img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .blog-content h3 {
    font-size: 1.6rem;
    color: #3C7C3C;
    margin-bottom: 0.5rem;
  }
  
  .blog-content p {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  .read-more {
    text-decoration: none;
    font-weight: bold;
    color: #6B4AA1;
    transition: color var(--transition);
  }
  
  .read-more:hover {
    color: #3C7C3C;
  }
  
  /* Botón Ver Más Publicaciones */
  .cta-button {
    display: inline-block;
    background-color: #3C7C3C;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: bold;
    margin-top: 2rem;
    transition: background var(--transition);
  }
  
  .cta-button:hover {
    background: #6B4AA1;
  }
  
  /* ==========================================
     SECCIÓN CONTACTO
     ========================================== */
  .contacto-section {
    background-color: #eeeeee;
    padding: 2rem 1rem;
  }
  
  .contacto-container {
    display: flex;
    flex-direction: column; /* mobile-first */
    gap: 2rem;
    max-width: 120rem;
    margin: 0 auto;
  }
  
  .form-container h2 {
    color: #3C7C3C;
    margin-bottom: 0.5rem;
    font-size: var(--fs-h2);
  }
  
  .form-container p {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
  
  #presupuesto-form {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 0.5rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #3C7C3C;
    font-size: 1.4rem;
  }
  
  .checkbox-title {
    font-weight: bold;
    font-size: 1.4rem;
    color: #3C7C3C;
    margin-bottom: 0.5rem;
  }
  
  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
  }
  
  .checkbox-item input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: #3C7C3C;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea,
  .form-group input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 0.1rem solid #ccc;
    border-radius: 0.2rem;
    font-size: 1.4rem;
    font-family: var(--fuente-primaria);
  }
  
  .cta-button {
    background-color: #65993D;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 1.4rem;
  }
  
  .cta-button:hover {
    background-color: #3C7C3C;
  }
  
  .contact-info {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 0.5rem;
    color: #333;
    font-size: 1.4rem;
  }
  
  .contact-info h3 {
    color: #3C7C3C;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
  }
  
  .contact-info hr {
    border: none;
    border-top: 0.1rem solid #3C7C3C;
    margin-bottom: 1rem;
  }
  
  .contact-info p {
    margin-bottom: 1rem;
  }
  
  .contact-info iframe {
    width: 100%;
    border: 0;
    border-radius: 0.5rem;
    min-height: 25rem; /* Ajusta según necesites */
  }
  
  /* ==========================================
     FOOTER
     ========================================== */
  .main-footer {
    background: var(--color-oscuro);
    color: var(--color-blanco);
    padding: 2rem;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 120rem;
    margin: 0 auto;
  }
  
  .footer-logo {
    width: 6rem;
  }
  
  .footer-nav {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
  }
  
  .footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .footer-social a {
    width: 3rem;
    height: auto;
    transition: transform var(--transition);
  }
  
  .footer-social a:hover {
    color: var(--color-primario);
    transform: scale(1.2);
  }
  
  /* ==========================================
     LOGIN PAGE
     ========================================== */
  .login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("ruta-a-tu-fondo.gif") center center / cover no-repeat;
    background-attachment: fixed;
  }
  
  .login-card {
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(0.3rem);
    padding: 2rem;
    border-radius: 1rem;
    width: 30rem;
    text-align: center;
    box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.2);
  }
  
  .login-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }
  
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group label {
    font-weight: 500;
    font-size: 1.4rem;
  }
  
  .form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 0.1rem solid #ccc;
    border-radius: 0.5rem;
    font-size: 1.4rem;
  }
  
  .login-button {
    background-color: var(--color-secundario);
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition);
    font-size: 1.4rem;
  }
  
  .login-button:hover {
    background-color: var(--color-primario);
  }
  
  /* ==========================================
     PÁGINA DE BLOG
     ========================================== */
  .blog-main {
    padding: 4rem 2rem;
    background: #f9f9f9;
  }
  
  .blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
    max-width: 100rem;
    margin: 2rem auto;
  }
  
  .blog-post {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
  }
  
  .blog-post:hover {
    transform: scale(1.05);
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.3);
  }
  
  .blog-post img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
  }
  
  .blog-info {
    padding: 1rem;
  }
  
  .blog-info h3 {
    font-size: 1.6rem;
    color: #3C7C3C;
  }
  
  .blog-info p {
    font-size: 1.4rem;
    color: #333;
  }
  
  .back-button {
    display: block;
    margin: 1rem;
    color: #6B4AA1;
    text-decoration: none;
    font-weight: bold;
  }
  
  .back-button:hover {
    color: #3C7C3C;
  }
  
  /* ==========================================
     SECCIONES ESPECÍFICAS (ASESORÍA, PERFORACIÓN, ETC.)
     ========================================== */
  #asesoria-main,
  #perforacion-main,
  #laboratorio-main,
  #cursos-main {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
    text-align: left;
    max-width: 120rem;
    margin: 0 auto;
  }
  
  .asesoria-title,
  .perforacion-title,
  .laboratorio-title,
  .cursos-title {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--color-primario);
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .asesoria-description,
  .perforacion-description,
  .laboratorio-description,
  .cursos-description {
    font-size: 1.6rem;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .asesoria-subtitle,
  .perforacion-subtitle,
  .laboratorio-subtitle,
  .cursos-subtitle {
    font-size: var(--fs-h2);
    color: var(--color-secundario);
    font-weight: 600;
    margin-top: 2rem;
  }
  
  .asesoria-text,
  .perforacion-text,
  .laboratorio-text,
  .cursos-text {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1.5rem;
  }
  
  .asesoria-list,
  .perforacion-list,
  .laboratorio-list,
  .cursos-list {
    list-style-type: none;
    padding: 0;
  }
  
  .asesoria-list li,
  .perforacion-list li,
  .laboratorio-list li,
  .cursos-list li {
    font-size: 1.4rem;
    padding: 0.5rem;
    color: #444;
    border-left: 0.5rem solid var(--color-primario);
    margin-bottom: 1rem;
    background: rgba(107, 74, 161, 0.1);
    padding-left: 1rem;
  }
  
  .asesoria-benefits,
  .perforacion-benefits,
  .laboratorio-benefits {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
  }
  
  .asesoria-benefits li,
  .perforacion-benefits li,
  .laboratorio-benefits li {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    padding: 0.5rem 0;
  }
  
  .highlight-text {
    font-weight: bold;
    color: var(--color-primario);
  }
  
  /* ==========================================
     SECCIÓN FAQ
     ========================================== */
  .faq-main {
    padding: 4rem 2rem;
    text-align: left;
    max-width: 80rem;
    margin: 0 auto;
  }
  
  .faq-list {
    max-width: 80rem;
    margin: 0 auto;
  }
  
  .faq-item {
    background: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 0.5rem solid var(--color-primario);
    border-radius: 0.5rem;
  }
  
  .faq-item h3 {
    font-size: 1.6rem;
    color: var(--color-secundario);
    margin-bottom: 0.5rem;
  }
  
  /* ==========================================
     SECCIÓN GEO (Geofísica)
     ========================================== */
  .geo-header {
    background: linear-gradient(135deg, var(--color-secundario) 0%, var(--color-primario) 100%);
    padding: 1.5rem 2rem;
    text-align: right;
    color: #000000;
    position: relative;
  }
  
  .geo-header h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .geo-back-button {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    position: absolute;
    left: 2rem;
    top: 1.5rem;
    transition: opacity var(--transition);
  }
  
  .geo-back-button:hover {
    opacity: 0.7;
  }
  
  #geo-main {
    padding: 3rem 2rem;
    text-align: center;
  }
  
  .geo-container {
    max-width: 120rem;
    margin: 0 auto;
  }
  
  .geo-title {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 1rem;
  }
  
  .geo-description {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .geo-metodos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .geo-metodo-btn {
    background-color: var(--color-secundario);
    color: #fff;
    font-size: 1.4rem;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    border-radius: 2.5rem;
    transition: background-color var(--transition), transform var(--transition);
  }
  
  .geo-metodo-btn:hover {
    background-color: var(--color-primario);
    transform: scale(1.05);
  }
  
  .geo-servicios-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .geo-servicio-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 28rem;
    cursor: pointer;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  
  .geo-servicio-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.8rem 3rem rgba(0, 0, 0, 0.15);
  }
  
  .geo-servicio-card img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
  }
  
  .geo-servicio-card h3 {
    font-size: 1.6rem;
    color: var(--color-secundario);
    padding: 1rem 0;
    background-color: #fafafa;
    margin: 0;
  }
  
  .geo-servicio-desc {
    font-size: 1.4rem;
    color: #333;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), opacity var(--transition);
    opacity: 0;
  }
  
  .geo-servicio-desc.visible {
    display: block;
    max-height: 50rem;
    opacity: 1;
  }
  
  /* ==========================================
     MEDIA QUERIES
     ========================================== */
  /* Mobile-first: ya se diseñó la mayoría con columnas únicas en móviles 
     y se expanden en pantallas grandes. 
     Aquí añadimos breakpoints para tablets, desktops, etc. */
  
  /* Pantallas de al menos 48em (~768px) */
  @media (min-width: 48em) {
    .contacto-container {
      flex-direction: row; /* 2 columnas en tablet+ */
    }
  
    .form-container {
      flex: 2;
    }
  
    .contact-info {
      flex: 1;
    }
  
    .especializacion-content {
      flex-direction: row; /* En pantallas medias, lado a lado */
      justify-content: space-between;
    }
    
    /* Mostrar menú normal y ocultar el hamburguesa */
    .hamburger {
      display: none;
    }
    .main-nav {
      display: flex !important;
      position: static;
      background: none;
      box-shadow: none;
      flex-direction: row;
    }
  }
  
  /* Pantallas de al menos 62em (~992px) */
  @media (min-width: 62em) {
    .hero-title {
      font-size: 3rem;
    }
    .hero-subtitle {
      font-size: 1.8rem;
    }
    .login-card {
      width: 35rem;
    }
  }
  
  /* Pantallas de al menos 75em (~1200px) */
  @media (min-width: 75em) {
    .hero-title {
      font-size: 4rem;
    }
    .hero-subtitle {
      font-size: 2rem;
    }
  }
  
/* ======= Sección "En Construcción" ======= */
/* Imagen del trabajador */
.geo-construccion {
  display: flex;
  align-items: center;
  justify-content: center;
}




/* ====== ESTILOS PARA EL MODAL ====== */
.modal-container {
  display: none;                 /* Oculto por defecto */
  position: fixed;
  z-index: 999;                  /* Que quede por encima de todo */
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6); /* Fondo semi-transparente oscuro */
  align-items: center;           /* Centrar contenido vertical */
  justify-content: center;       /* Centrar contenido horizontal */
}

.modal-content {
  background-color: rgba(255,255,255,0.95); /* Caja clara semi-transparente */
  backdrop-filter: blur(4px);    /* Efecto de difuminado */
  padding: 2rem;
  border-radius: 1rem;
  max-width: 60rem;              /* ~600px */
  width: 90%;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-secundario);
}

.modal-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--color-secundario);
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.4rem;
  transition: background-color var(--transition);
}

.modal-button:hover {
  background-color: var(--color-primario);
}
/* Justificar el texto del párrafo del resumen */
#modal-summary {
  text-align: justify;    /* justifica el texto */
  max-height: 40vh;       /* altura máxima (40% de la ventana) */
  overflow-y: auto;       /* scroll si excede la altura */
  margin-bottom: 2rem;    /* opcional, un margen para separarlo */
}




