/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #fb941c;
  --color-secondary: #189ca0;
  --color-tertiary: #edf1e4;
  --color-background: #f8f9fa;
  --color-text: #333333;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-2: #fbcc5d;
  --color-3: #fb732c;
  --color-4: #dc7645;
  --color-5: #347874;
  --color-6: #eca870;
  --color-gray-light: #e9ecef;
  --color-gray: #6c757d;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.60);   
  backdrop-filter: blur(12px);            
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav-logo {
  height: 50px;
}

.logo-img {
  height: 100%;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-text);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-3);
  border-color: var(--color-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  /* Changed to primary orange for better contrast on hero */
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  /* Filled background on hover with primary color */
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-nav {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

.btn-whatsapp {
  background: #25d366;
  color: var(--color-white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Changed gradient from blue-teal to warm orange tones*/ 
  background: linear-gradient(
    135deg,
    /*rgba(251, 148, 28, 0.90) 0%,
    rgba(220, 118, 69, 0.88) 50%,
    rgba(52, 120, 116, 0.80) 100%*/
    rgba(0,0,0,70%),
    rgba(0,0,0,92%),
    rgba(0,0,0,60%)
  );
}


.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 2rem 1.5rem;
}

.hero-logo-wrapper {
  margin-bottom: 2rem;
}

.hero-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  color: var(--color-white);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-service-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.hero-service-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.hero-service-item .icon {
  width: 20px;
  height: 20px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-white);
}

/* Animations */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 {
  animation: fadeIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fadeIn 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.fade-in-delay-4 {
  animation: fadeIn 0.8s ease-out 0.8s forwards;
  opacity: 0;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Services Section */
.services {
  /* Changed from white to light gray background for better card visibility */
  background: var(--color-background);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  /* Added visible border for better definition */
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  /* Using darker text color for better visibility */
  color: var(--color-text);
  margin-bottom: 1rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  padding-left: 1.5rem;
  position: relative;
  /* Darker gray for better readability */
  color: var(--color-text);
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Inmobiliarias Section */
.inmobiliarias {
  background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-background) 100%);
}

.inmobiliarias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.inmobiliaria-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  /* Added visible border for card definition */
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
}

.inmobiliaria-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.inmobiliaria-image-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary);
}

.inmobiliaria-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inmobiliaria-title {
  font-size: 1.25rem;
  font-weight: 700;
  /* Darker text for visibility */
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.inmobiliaria-description {
  /* Using darker gray for better contrast */
  color: var(--color-text);
  font-size: 0.9375rem;
  opacity: 0.8;
}

/* SGF Section */
.sgf {
  background: var(--color-white);
}

.sgf-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sgf-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sgf-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.sgf-subtitle {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  font-weight: 600;
}

.sgf-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sgf-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text);
}

.icon-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: var(--color-secondary);
  margin-top: 2px;
}

.sgf-image {
  position: relative;
}

.sgf-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* Quick Contact Section */
.quick-contact {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-3) 100%);
  color: var(--color-white);
  /* Better padding structure */
  padding: 5rem 0;
}

.quick-contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  /* Added max-width for better content containment */
  max-width: 900px;
  margin: 0 auto;
}

.quick-contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quick-contact-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 700px;
}

.quick-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.icon-whatsapp {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--color-text) 0%, #2d2d2d 100%);
  color: var(--color-white);
  padding: 3rem 0 0;
}

/* Aumenta el padding lateral del container en el footer */
.footer .container {
  padding: 0 2.5rem;  /* Cambiado de 1.5rem a 2.5rem para más espacio */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  width: 150px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-md);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9375rem;
}

.footer-list a:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

.icon-small {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--color-primary);
}

/* Sección de iconos sociales y pago */
.social-payment-section {
  margin-top: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.social-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 148, 28, 0.1);
  border-radius: 12px;
  border: 2px solid rgba(251, 148, 28, 0.2);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.social-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(251, 148, 28, 0.4);
}

.social-icon svg {
  width: 28px;
  height: 28px;
  transition: var(--transition-smooth);
}

.social-icon:hover svg {
  transform: scale(1.1);
}

/* Tooltips */
.social-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--color-text);
  color: var(--color-white);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-primary);
}

.social-icon:hover::after {
  transform: translateX(-50%) scale(1);
}

/* Medios de pago */
.payment-section {
  margin-top: 2rem;
  text-align: center;
}

.payment-title {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.payment-icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.payment-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.payment-icon:hover {
  background: rgba(251, 148, 28, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.payment-icon img {
  width: 38px;
  height: 38px;
  object-fit: cover;
}

.payment-icon svg {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.8);
}

.payment-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--color-text);
  color: var(--color-white);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-primary);
}

.payment-icon:hover::after {
  transform: translateX(-50%) scale(1);
}

/* Footer bottom */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.simplio-attribution {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.simplio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition-smooth);
  font-weight: 600;
}

.simplio-link:hover {
  color: var(--color-2);
  transform: translateX(2px);
}

.simplio-logo {
  height: 22px;
  width: auto;
  filter: brightness(1.1);
  transition: var(--transition-smooth);
}

.simplio-link:hover .simplio-logo {
  filter: brightness(1.3);
}

/* Responsive para Footer - AGREGAR a la sección @media (max-width: 768px) existente */
@media (max-width: 768px) {
  /* ... tus otros estilos responsive ... */
  
  /* Ajuste de padding en móviles */
  .footer .container {
    padding: 0 2rem;
  }
  
  /* Agregar estos estilos del footer dentro del media query existente */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-section {
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    margin: 0 auto 0.5rem;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-list li {
    justify-content: center;
  }

  .social-icons {
    gap: 1.2rem;
  }

  .payment-icons {
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Scroll Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: var(--color-white);
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    align-items: flex-start;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }

  .hero-services {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-service-item {
    justify-content: center;
  }

  .sgf-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sgf-image {
    order: -1;
  }

  section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .services-grid,
  .inmobiliarias-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .quick-contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .quick-contact-actions .btn {
    width: 100%;
  }
}


