/* Estilos personalizados manteniendo la paleta de colores */
:root {
  --primary: #ffc107;
  --primary-light: rgba(13, 110, 253, 0.1);
  --secondary: #6c757d;
  --light: #f8f9fa;
  --dark: #212529;
}

.text-primary {
  color: #ffc107 !important;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

.header {
  color: #544e3b;
  text-transform: uppercase;
  background-color: #ffc50a94;
  padding: 5px 0;
  transition: all 0.5s;
  z-index: 997;
  border-bottom: 1px solid
    color-mix(in srgb, var(--accent-color), transparent 85%);
}

.hero {
  background-image: url(../img/hero.webp);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero .main-banner .card .card-body {
  color: #fff;
  border: 0.0625rem solid #d1e4f8;
  border-radius: 0.3125rem 0.3125rem 0.3125rem 0.3125rem;
  background: rgb(0, 61, 138);
  opacity: 1;
  box-shadow: rgba(93, 93, 93, 1) 2px 0 4px 0;
}

.hero .main-banner span i {
  font-size: 40px;
  color: #6ce679;
}

.sitename {
  color: #544e3b;
  margin: 0;
}

.navmenu {
  display: flex;
}

.navmenu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu li {
  position: relative;
  padding: 0 15px;
}

.navmenu a {
  color: var(--dark);
  font-weight: 500;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.3s;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--primary);
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  color: #544e3b;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--secondary);
  max-width: 700px;
  margin: 0 auto;
}

.section-aviso-legal {
  text-align: center;
  margin-bottom: 50px;
}

.section-aviso-legal h2 {
  color: #544e3b;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-aviso-legal p {
  color: var(--secondary);
  text-align: justify;
  margin: 0 auto;
}

/* Selector de tipo de propiedad */
.property-selector {
  margin-bottom: 1.5rem;
}

.property-option {
  display: block;
  padding: 1.5rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  background-color: white;
  text-decoration: none;
}

.property-option:hover {
  border-color: var(--primary);
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.15);
}

input[type="radio"]:checked + .property-option {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.property-icon {
  margin-bottom: 1rem;
}

.property-title {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.property-description {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.selection-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

input[type="radio"]:checked + .property-option .selection-indicator {
  opacity: 1;
}

/* Botones */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #ffc107;
  border-color: #0a58ca;
}

.btn-info {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
}

.btn-info:hover {
  background-color: #0db0d0;
  border-color: #0ba5c2;
}

/* Sección de servicios */
.services {
  background-image: url(../img/hero.webp);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.service-item {
  padding: 2rem;
  border-radius: 0.5rem;
  background-color: white;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.1);
}

.service-item .icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-item .icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

.service-item h3 {
  color: #8f6b00;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* FAQ Section */
.faq {
  background-color: white;
}

.accordion-button {
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Footer */
.footer {
  background-color: var(--light);
  padding: 2rem 0;
  text-align: center;
}

/* Formularios */
.form-control {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

button[type="submit"] {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
}

button[type="submit"]:hover {
  background-color: #ffc107;
  transform: translateY(-2px);
}

/* Elimina subrayado en todos los elementos */
a,
a:hover,
a:focus,
a:active,
.btn,
.btn:hover,
.btn:focus,
.btn:active,
h1,
h2,
h3,
h4,
h5,
h6,
.property-option,
.service-item {
  text-decoration: none !important;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .navmenu ul {
    margin-left: auto;
  }
}

@media (max-width: 991.98px) {
  .navmenu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
  }

  .navmenu ul {
    flex-direction: column;
  }

  .navmenu li {
    padding: 10px 0;
  }

  .navmenu.active {
    right: 0;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 40px 0;
  }
}

.cookie-banner {
  position: fixed;
  z-index: 9999;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  background-color: #fbf5e2;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner img {
  max-width: 80px;
  margin-bottom: 15px;
}

.cookie-banner h1 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.cookie-banner p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
}

.cookie-buttons button,
.cookie-buttons a {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.accept-btn {
  background-color: #4caf50;
  color: #fff;
}

.reject-btn {
  background-color: #ff5f5f;
  color: #fff;
}

.learn-more {
  background-color: transparent;
  color: #333;
  text-decoration: underline;
}

.cookie-buttons button:hover,
.cookie-buttons a:hover {
  transform: scale(0.98);
}

/*Estilos generales del boton whatsapp*/
.btn-form-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9;
  height: 60px;
  border-radius: 4px;
  background-color: #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: breathe 2s ease-in-out infinite;
}

/*Estilos solo al icono whatsapp*/
.btn-form-popup i {
  color: #fff;
  margin-right: 20px;
  font-size: 24px;
  animation: beat 2s ease-in-out infinite;
  text-decoration: none;
}

/*Estilos con animation contorno respirando*/
@keyframes breathe {
  0% {
    box-shadow: 0 0 0 0 rgba(173, 211, 37, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/*Estilos de animacion del icono latiendo*/
@keyframes beat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
