/* ---------------------------------------------------------
   CONFIGURACIÓN GENERAL
--------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0A0A0A;
  color: #E0E0E0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.section {
  padding: 80px 10%;
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #BDBDBD;
  margin-bottom: 40px;
}



/* ---------------------------------------------------------
   NAVBAR + MENÚ HAMBURGUESA
--------------------------------------------------------- */

.navbar {
  width: 100%;
  padding: 15px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0B3C5D;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible !important; /* ← FIX DEFINITIVO */
}

/* Fondo semitransparente del logo */
.logo-bg {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 55px;
  width: auto;
}

.logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: #E0E0E0;
  display: block;
}

/* Menú normal (desktop) */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
  color: #E0E0E0;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #E65100;
}

/* Checkbox oculto */
#menu-toggle {
  display: none;
}

/* Icono hamburguesa */
.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}


/* ============================
   PERFIL (ESCRITORIO)
============================ */

.desktop-only {
    display: block;
}

.perfil-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.perfil-menu {
    position: relative;
    z-index: 9999;
}

.perfil-btn {
    background: #2E7D32;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.perfil-btn:hover {
    background: #E65100;
}

/* Dropdown */
.perfil-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    border: 1px solid #2E7D32;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    min-width: 170px;
    z-index: 99999;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* FIX DEFINITIVO: sin espacio entre .perfil-menu:hover y .perfil-dropdown */
.perfil-menu:hover .perfil-dropdown {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.perfil-dropdown a {
    padding: 12px 15px;
    color: #E0E0E0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.perfil-dropdown a:hover {
    background: #2E7D32;
    color: white;
    padding-left: 20px;
}

/* ============================
   PERFIL EN MÓVILES
============================ */

.perfil-mobile {
    display: none;
    flex-direction: column;
    margin-top: 20px;
    border-top: 1px solid #2E7D32;
    padding-top: 15px;
}

.perfil-mobile-title {
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 10px;
}

/* Mostrar perfil móvil y ocultar escritorio */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .perfil-mobile {
        display: flex;
    }
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 10%;
  background: linear-gradient(135deg, #0A0A0A, #0B3C5D);
}

.hero-content {
  width: 50%;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #CCCCCC;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-primary {
  padding: 12px 22px;
  background: #2E7D32;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #E65100;
}

.btn-ghost {
  padding: 12px 22px;
  border: 2px solid #2E7D32;
  color: #2E7D32;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-ghost:hover {
  border-color: #E65100;
  color: #E65100;
}



/* ---------------------------------------------------------
   HERO — TARJETAS FLOTANTES (ESCRITORIO)
--------------------------------------------------------- */

.hero-visual {
  width: 45%;
  position: relative;
}

.hero-orbit {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid #2E7D32;
  position: absolute;
  top: 20px;
  left: 60px;
  opacity: 0.4;
}

.hero-card {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 0 12px rgba(46, 125, 50, 0.4);
}

.hero-card.secondary {
  position: absolute;
  top: 180px;
  right: 120px;
  box-shadow: 0 0 12px rgba(230, 81, 0, 0.4);
}



/* ---------------------------------------------------------
   HERO — CARRUSEL EN MÓVILES
--------------------------------------------------------- */

.hero-carousel {
  display: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 0;
}

.hero-carousel::-webkit-scrollbar {
  height: 6px;
}

.hero-carousel::-webkit-scrollbar-thumb {
  background: #2E7D32;
  border-radius: 10px;
}

.hero-carousel .hero-card {
  min-width: 240px;
  flex-shrink: 0;
}



/* ---------------------------------------------------------
   SERVICIOS
--------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 40px;
}

.service-card {
  background: #111;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #2E7D32;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #E65100;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  fill: #2E7D32;
  margin-bottom: 15px;
}

.service-card:hover svg {
  fill: #E65100;
}



/* ---------------------------------------------------------
   CONTACTO
--------------------------------------------------------- */

.contact-form {
  max-width: 900px;
  margin: auto;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #2E7D32;
}

input, select, textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #111;
  color: white;
}

input:focus, select:focus, textarea:focus {
  border-color: #2E7D32;
}



/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.footer {
  background: #111;
  padding: 25px 10%;
  display: flex;
  justify-content: space-between;
  color: #BDBDBD;
  font-size: 0.9rem;
}

.footer-right a {
  margin-left: 20px;
  color: #2E7D32;
}

.footer-right a:hover {
  color: #E65100;
}



/* ---------------------------------------------------------
   RESPONSIVE (TABLETS Y CELULARES)
--------------------------------------------------------- */

/* Tablets */
@media (max-width: 992px) {

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Celulares */
@media (max-width: 768px) {

  /* Mostrar hamburguesa */
  .hamburger {
    display: block;
  }

  /* Ocultar menú normal */
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 10%;
    background: #0B3C5D;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2E7D32;
  }

  /* Mostrar menú cuando el checkbox está activo */
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* PERFIL MÓVIL */
  .perfil-mobile {
    display: flex;
  }

  /* Ocultar perfil escritorio */
  .desktop-only {
    display: none;
  }

  /* Carrusel visible */
  .hero-carousel {
    display: flex;
  }

  /* Servicios 1 columna */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Contacto en una sola columna */
  .form-row {
    flex-direction: column;
  }

  /* Footer vertical */
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}



/* ---------------------------------------------------------
   MODAL DE REGISTRO (LOGIN ECO)
--------------------------------------------------------- */

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.55);
  z-index: 900;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  padding: 35px;
  width: 380px;
  border-radius: 15px;
  border: 1px solid #2E7D32;
  box-shadow: 0 0 25px rgba(46, 125, 50, 0.4);
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal h2 {
  text-align: center;
  color: #2E7D32;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1A1A1A;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.modal input:focus {
  border-color: #2E7D32;
}

.botones {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.botones button {
  width: 48%;
  padding: 12px;
  background: #2E7D32;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.botones button:hover {
  background: #E65100;
}

.error {
  color: #FF5252;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 10px;
}



