
/* main.css - INDEX CON CABECERA FIJA Y SIN FONDO AZUL */

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #2c3e50;
  line-height: 1.6;
}

/* ANIMACIONES DE CARGA PROGRESIVA */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Clases de animación */
.reveal {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.reveal-delay-1 { animation-delay: 0.3s; }
.reveal-delay-2 { animation-delay: 0.6s; }
.reveal-delay-3 { animation-delay: 0.9s; }

.reveal-fade {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.reveal-scale {
  opacity: 0;
  animation: scaleIn 0.8s ease-out forwards;
}

/* ========== CABECERA FIJA - MISMO COLOR SIEMPRE ========== */
.background{background:#d1d5db;}

.contact{
  width: 100%;
  height: 60px;
  background-color: #2c3e50 !important;
  color: #d1d5db;
  font-weight: bold;
}

.contact .list_contact {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 10px;
}

.contact .list_contact i span{margin-left:10px;}

#navegation{
  border-bottom: 5px solid #0f172a;
  background: #d1d5db !important; /* ← MISMO GRIS QUE EL FOOTER */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: none !important; /* ELIMINA CUALQUIER TRANSICIÓN */
}

/* NAVBAR CON SEPARACIÓN AMPLIA Y COLOR FIJO */
#navegation .navbar-nav .nav-link {
  font-size: 1.6rem !important;
  font-weight: 600;
  margin: 0 22px;
  padding: 8px 12px !important;
  transition: all 0.3s ease;
  color: #0F1E38 !important; /* ← TEXTO AZUL OSCURO PARA CONTRASTAR */
}

#navegation .navbar-nav .nav-link:hover,
#navegation .navbar-nav .nav-link.active {
  color: #94BA46 !important;
  transform: translateY(-2px);
}

#navegation .navbar-nav {
  align-items: center;
  gap: 17px !important;
}

/* DROPDOWN */
#navegation .dropdown-toggle:focus {
  box-shadow: none !important;
  color: #94BA46 !important;
}

#navegation .dropdown-menu {
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

#navegation .dropdown-item {
  font-size: 1.1rem;
  padding: 10px 15px;
  color: #0F1E38 !important;
  transition: all 0.3s ease;
}

#navegation .dropdown-item:hover,
#navegation .dropdown-item:focus {
  background-color: #94BA46 !important;
  color: white !important;
}

#navegation .dropdown-item.active {
  background-color: #94BA46 !important;
  color: white !important;
}

#navegation .nav-link:focus {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.3);
}

.navbar-social .fa-facebook {
  color: #1877f2 !important;
}

.navbar-social .fa-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-social a {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0.8;
  color: white !important;
}

.navbar-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

#navegation img{
  width: 200px;
}

/* ========== HERO SECTION CON ANIMACIONES ========== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 80px;
  background-repeat: no-repeat;
  animation: heroSlideshow 25s infinite ease-in-out;
  transition: background-image 3s ease-in-out;

}

@keyframes heroSlideshow {
  0% {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
      url('../img/portadas/ChatGPT Image Jul 28, 2025, 04_56_28 AM.png');
  }
  20% {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
      url('../img/portadas/ChatGPT Image Jul 28, 2025, 05_17_09 AM.png');
  }
  40% {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
      url('../img/portadas/hermosa-foto-de-una-casa-moderna-cocina-y-comedor.jpg');
  }
  60% {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
      url('../img/portadas/IMG_2444.jpg');
  }
  80% {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
      url('../img/portadas/portadas.png');
  }
  100% {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
      url('../img/canos/bano.jpg');
  }
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.8s;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #0f172a;     
  color: white;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 1.1s;
}

.btn:hover {
  background-color: #4CAF50;
  color: #0f172a;
  transition: 0.5s;
  border: 2px solid #d1d5db;
  transform: translateY(-3px);
}

/* ========== SERVICES SECTION SIN FONDO AZUL ========== */
.services {
  text-align: center;
  padding: 30px;
  background: transparent;  /* SIN FONDO AZUL */
  color: #0f172a;  /* TEXTO OSCURO */
  margin: 20px 0;
  border-radius: 0;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.services-section {
  background: #2c3e50;  /* ← FONDO AZUL ORIGINAL */
  color:  white;  /* ← TEXTO BLANCO */
  padding: 60px 0;  /* ← PADDING ORIGINAL */
  text-align: center;
  margin: 40px 0;  /* ← MARGIN ORIGINAL */
  border-radius: 12px;  /* ← BORDES REDONDEADOS ORIGINALES */
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.3s;
}

.section-title {
  position: relative;
  display: inline-block;
  font-size: 36px;
  margin-bottom: 50px;
  color: white;  /* COLOR OSCURO */
  font-weight: bold;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: #94BA46;
  bottom: -10px;
  left: 25%;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.5s;
}

.services-section p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.7s;
}
/* CAMBIAR SOLO EL COLOR DE "OUR SERVICES" */
.services .section-title {
  color: #0F1E38 !important;
}

.services .section-title:after {
  background-color: #94BA46 !important;
}
/* ========== CARDS CON ANIMACIONES ESCALONADAS ========== */
.container_card{
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.card{
  width: 400px;
  overflow: hidden;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Animaciones escalonadas para cards */
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.card:nth-child(5) { animation-delay: 1.0s; }
.card:nth-child(6) { animation-delay: 1.2s; }
.card:nth-child(7) { animation-delay: 1.4s; }
.card:nth-child(8) { animation-delay: 1.6s; }
.card:nth-child(9) { animation-delay: 1.8s; }
.card:nth-child(10) { animation-delay: 2.0s; }

.card:hover{
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transform: translateY(-10px) scale(1.02);
  transition: 0.4s;
  cursor: pointer;
}

.card img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0;
  animation: scaleIn 0.8s ease-out forwards;
}

.card:nth-child(1) img { animation-delay: 0.3s; }
.card:nth-child(2) img { animation-delay: 0.5s; }
.card:nth-child(3) img { animation-delay: 0.7s; }
.card:nth-child(4) img { animation-delay: 0.9s; }
.card:nth-child(5) img { animation-delay: 1.1s; }
.card:nth-child(6) img { animation-delay: 1.3s; }
.card:nth-child(7) img { animation-delay: 1.5s; }
.card:nth-child(8) img { animation-delay: 1.7s; }
.card:nth-child(9) img { animation-delay: 1.9s; }
.card:nth-child(10) img { animation-delay: 2.1s; }

.card img:hover{
  transform: scale(1.05);
  transition: 0.5s;
}

.card-body {
  padding: 20px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.card:nth-child(1) .card-body { animation-delay: 0.4s; }
.card:nth-child(2) .card-body { animation-delay: 0.6s; }
.card:nth-child(3) .card-body { animation-delay: 0.8s; }
.card:nth-child(4) .card-body { animation-delay: 1.0s; }
.card:nth-child(5) .card-body { animation-delay: 1.2s; }
.card:nth-child(6) .card-body { animation-delay: 1.4s; }
.card:nth-child(7) .card-body { animation-delay: 1.6s; }
.card:nth-child(8) .card-body { animation-delay: 1.8s; }
.card:nth-child(9) .card-body { animation-delay: 2.0s; }
.card:nth-child(10) .card-body { animation-delay: 2.2s; }

/* ========== CONTACT SECTION ========== */
.contact-section {
  background: #2c3e50;
  color: white;
  padding: 60px 0;
  text-align: center;
  margin: 40px 0;
  border-radius: 12px;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.5s;
}
.contact {
    width: 100%;
    height: 60px;
    background-color: #2c3e50 !important;
    color: #d1d5db;
    font-weight: bold;
    border-bottom: 4px solid #94BA46 !important; /* MISMO VERDE QUE EL COPYRIGHT ABAJO */
}
.contact-section .section-title {
  color: white;
  animation-delay: 0.6s;
}

.contact-section .section-title:after {
  background-color: #94BA46;
  animation-delay: 0.8s;
}

.contact-section p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.9s;
}

.contact-section .btn {
  background: #94BA46;
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1.1s;
}

.contact-section .btn:hover {
  background: #0F1E38;
  color: white;
  transform: translateY(-3px);
}

/* ========== FOOTER IDÉNTICO AL ABOUT US ========== */
.site-footer {
  background: #d1d5db !important;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
   border-top: 4px solid #0F1E38; /* Borde azul en la parte superior */
}

.footer-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-width: 220px;
  height: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 250px;
  margin: 10px;
  text-align: center;
  padding: 15px;
}

.footer-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem !important;
  font-weight: 600;
  color: #0F1E38 !important;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
}

.footer-title:hover,
.footer-title.active {
  color: #94BA46 !important;
  transform: translateY(-2px);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: #94BA46;
  transition: left 0.3s ease;
}

.footer-title:hover::after {
  left: 0;
}

.footer-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #0F1E38;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  font-size: 1.1rem;
  color: #495057;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #0d6efd;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  justify-content: center;
}

.footer-social a {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-social .fa-facebook {
  color: #1877f2 !important;
}

.footer-social .fa-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-bottom {
  background: #2c3e50;
  padding: 1rem 0;
  margin-top: 2rem;
  text-align: center;
}

.footer-bottom .footer-text {
  font-size: 1rem;
  color: white;
  margin: 0 10px;
}
.footer-bottom {
    background: #2c3e50;
    padding: 1rem 0;
    border-top: 3px solid #94BA46; /* Exactamente igual al de la cabecera */
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px; /* Más padding lateral */
}

.footer-left {
    text-align: left;
    margin-left: 20px;
}

.footer-right {
    text-align: right;
    margin-right: 20px;
}
/* ========== BOTÓN SCROLL ========== */
.boton-scroll a {
  position: fixed;
  width: 40px;
  text-align: center;
  font-size: 25px;
  bottom: 4%;
  right: 2%;
  z-index: 9;
  background-color: #0f172a;
  color: #d1d5db;
  opacity: 0.5;
  border-radius: 100%;
  visibility: hidden;
  animation: baja-sube 1s ease infinite;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-decoration: none;
  line-height: 40px;
}

.boton-scroll a:hover {
  background-color: #0f172a;
  color: lawngreen;
  border: 1px solid black;
  transform: scale(1.1);
  opacity: 1 !important;
}

@keyframes baja-sube {
  0% { transform: translateY(10px); }
  25% { transform: translateY(0px); }
  100% { transform: translateY(10px); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .navbar-social {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    justify-content: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
  }

  #navegation .navbar-nav .nav-link {
    font-size: 1rem !important;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .card {
    width: 100%;
    max-width: 350px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-section {
    flex: 1 1 100%;
    margin: 10px 0;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
}
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
        margin: 0;
    }
}
/* FORZAR VISIBILIDAD DEL TEXTO DEL FOOTER */
.footer-bottom .footer-text {
    color: white !important;
    font-size: 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.footer-left, .footer-right {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* ANIMACIONES AL SCROLL - VERSIÓN MEJORADA */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones escalonadas para cards */
.container_card .reveal:nth-child(1) { transition-delay: 0.1s; }
.container_card .reveal:nth-child(2) { transition-delay: 0.2s; }
.container_card .reveal:nth-child(3) { transition-delay: 0.3s; }
.container_card .reveal:nth-child(4) { transition-delay: 0.4s; }
.container_card .reveal:nth-child(5) { transition-delay: 0.5s; }
.container_card .reveal:nth-child(6) { transition-delay: 0.6s; }
.container_card .reveal:nth-child(7) { transition-delay: 0.7s; }
.container_card .reveal:nth-child(8) { transition-delay: 0.8s; }
.container_card .reveal:nth-child(9) { transition-delay: 0.9s; }
.container_card .reveal:nth-child(10) { transition-delay: 1.0s; }

