/* Custom CSS for Francisco Construcciones */

:root {
  --primary-color: #d4a574;
  --secondary-color: #8b4513;
  --accent-color: #f4e4bc;
  --dark-color: #2c1810;
  --darker-color: #1a0f08;
  --light-color: #faf7f2;
  --text-dark: #3c2415;
  --text-light: #6b5b4f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--dark-color);
}

/* Navigation */
.custom-navbar {
  /* Navbar completamente transparente al inicio */
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

/* Clase para navbar con scroll */
.custom-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--dark-color) !important;
  text-decoration: none;
}

/* Color del brand cuando navbar es transparente */
.custom-navbar .navbar-brand {
  color: white !important;
}

.custom-navbar.scrolled .navbar-brand {
  color: var(--dark-color) !important;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

.brand-text {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Color del brand text cuando navbar es transparente */
.custom-navbar .brand-text {
  color: white;
}

.custom-navbar.scrolled .brand-text {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  /* Links blancos cuando navbar es transparente */
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

/* Links oscuros cuando navbar tiene scroll */
.custom-navbar.scrolled .navbar-nav .nav-link {
  color: var(--text-dark) !important;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Toggler button for navbar transparente */
.custom-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.custom-navbar.scrolled .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.custom-navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
  background-image: url("/images/header.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.8) 0%, rgba(139, 69, 19, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white; /* Making hero title text white by default */
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
}

.text-accent {
  color: var(--accent-color);
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--dark-color);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* About Section */
.about-content {
  padding: 2rem 0;
}

.about-content .lead {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image img {
  border-radius: 15px;
}

/* Replaced geometric patterns with elegant typography composition */
.typography-composition {
  position: relative;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow: hidden;
}

.values-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 350px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease forwards;
}

.value-item:nth-child(1) {
  animation-delay: 0.2s;
}
.value-item:nth-child(2) {
  animation-delay: 0.4s;
}
.value-item:nth-child(3) {
  animation-delay: 0.6s;
}

.value-number {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 1.5rem;
  min-width: 30px;
  opacity: 0.8;
}

.value-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.value-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

.decorative-text {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: 2rem;
  z-index: 1;
  opacity: 0.1;
  pointer-events: none;
}

.large-text {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 0.8;
  transform: rotate(-5deg);
  margin-bottom: 0.5rem;
}

.medium-text {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--secondary-color);
  font-style: italic;
  margin-bottom: 1rem;
  transform: translateX(20px);
}

.small-text {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: translateX(40px);
}

/* Luxury design elements for Furniture section */
.luxury-design-container {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.design-elements {
  position: relative;
  width: 320px;
  height: 320px;
}

.elegant-shape {
  position: absolute;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0.8;
  border-radius: 20px;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 30%;
  transform: rotate(45deg);
  animation: luxuryFloat 6s ease-in-out infinite;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 25%;
  transform: rotate(-30deg);
  animation: luxuryFloat 6s ease-in-out infinite 2s;
  opacity: 0.6;
}

.shape-3 {
  width: 40px;
  height: 40px;
  bottom: 20%;
  left: 20%;
  transform: rotate(15deg);
  animation: luxuryFloat 6s ease-in-out infinite 4s;
  opacity: 0.7;
}

.flowing-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  opacity: 0.8;
}

.flow-1 {
  width: 150px;
  top: 40%;
  left: 10%;
  transform: rotate(25deg);
  animation: luxuryGlow 4s ease-in-out infinite;
}

.flow-2 {
  width: 120px;
  bottom: 35%;
  right: 15%;
  transform: rotate(-45deg);
  animation: luxuryGlow 4s ease-in-out infinite 2s;
}

.accent-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
}

.point-1 {
  top: 25%;
  left: 50%;
  animation: luxuryPulse 3s ease-in-out infinite;
}

.point-2 {
  top: 50%;
  right: 30%;
  animation: luxuryPulse 3s ease-in-out infinite 1s;
}

.point-3 {
  bottom: 30%;
  left: 35%;
  animation: luxuryPulse 3s ease-in-out infinite 2s;
}

/* Service Cards */
.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 165, 116, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.service-card h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Furniture Section */
.furniture-content {
  padding: 2rem 0;
}

.furniture-types {
  margin: 2rem 0;
}

.furniture-type {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* Elegant type indicators instead of icons */
.type-indicator {
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  margin-right: 1rem;
  position: relative;
}

.type-indicator::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Gallery */
.gallery-btn {
  border-color: var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.gallery-btn.active,
.gallery-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.gallery-container {
  display: none;
}

.gallery-container.active {
  display: block;
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
}

.carousel-caption {
  background: rgba(44, 24, 16, 0.8);
  border-radius: 10px;
  padding: 1rem;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1rem;
}

/* Contact Section */
.contact-info h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--primary-color);
}

.contact-card {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem 1rem;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
  color: white;
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.contact-card:hover .contact-icon {
  color: white;
}

.contact-card h5 {
  color: inherit;
  margin-bottom: 0.5rem;
}

/* Reviews Section */
.reviews-section {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-color) 100%);
  padding: 4rem 0 !important;
}

.review-card-simple {
  background: white;
  padding: 1.8rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 165, 116, 0.1);
  height: 100%;
  position: relative;
  margin-bottom: 1rem;
}

.review-card-simple:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.review-card-simple .review-quote {
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: 0.8rem;
  left: 1.2rem;
  font-family: "Playfair Display", serif;
  line-height: 1;
}

.review-card-simple .review-text {
  font-style: italic;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
  margin: 1.5rem 0 1.2rem;
  position: relative;
  z-index: 2;
}

.review-card-simple .review-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.review-card-simple .review-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 1rem;
}

.review-card-simple .review-info h5 {
  color: var(--dark-color);
  margin-bottom: 0.2rem;
  font-weight: 600;
  font-size: 1rem;
}

.review-card-simple .review-info .review-location {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

.review-card {
  display: none;
}

.review-stars {
  display: none;
}

/* Footer */
.bg-darker {
  background-color: var(--darker-color) !important;
}

.social-links a {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Elegant animations for new design elements */
@keyframes elegantRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes elegantPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

@keyframes elegantFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes luxuryFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(45deg);
  }
  50% {
    transform: translateY(-20px) rotate(45deg);
  }
}

@keyframes luxuryGlow {
  0%,
  100% {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.6);
  }
}

@keyframes luxuryPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.8);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-card {
    margin-bottom: 2rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }

  /* Responsive adjustments for typography composition */
  .typography-composition {
    height: 300px;
    padding: 1rem;
  }

  .large-text {
    font-size: 2.5rem;
  }

  .medium-text {
    font-size: 1.2rem;
  }

  .decorative-text {
    padding-right: 1rem;
  }

  .luxury-design-container {
    height: 300px;
  }

  .design-elements {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 1rem 0;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .carousel-caption {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.5rem;
  }

  /* Mobile adjustments for typography composition */
  .typography-composition {
    height: 250px;
  }

  .large-text {
    font-size: 2rem;
  }

  .medium-text {
    font-size: 1rem;
  }

  .small-text {
    font-size: 0.8rem;
  }

  .luxury-design-container {
    height: 250px;
  }

  .design-elements {
    width: 200px;
    height: 200px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery image fixes to prevent cropping and contact section fixes */

/* Updated gallery images to show complete images without white space */
.gallery-image {
  object-fit: contain !important;
  object-position: center !important;
  height: 500px !important;
  width: 100% !important;
  background-color: var(--light-color) !important;
  border-radius: 15px;
}

/* Carousel container height fix */
.carousel-inner {
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  background-color: var(--light-color);
}

.carousel-item {
  height: 500px;
  border-radius: 15px;
  background-color: var(--light-color);
}

/* Updated gallery navigation buttons to use cream color instead of blue */
.gallery-btn {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.gallery-btn.active {
  background-color: var(--accent-color) !important;
  color: var(--dark-color) !important;
  border-color: var(--accent-color) !important;
}

.gallery-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Ensure footer doesn't overlap */
footer {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 0 !important;
}

/* Fix any potential floating issues */
.container::after,
.row::after {
  content: "";
  display: table;
  clear: both;
}
