/* ============================================
   TERACLIMA - ESTILOS PERSONALIZADOS
   ============================================ */

/* Variables CSS */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --success-color: #25d366;
  --transition: all 0.3s ease;
}

/* Fuentes */
* {
  font-family: 'Poppins', sans-serif;
}

body {
  padding-top: 80px;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(30, 60, 114, 0.95) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
}

.navbar-brand-text:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Logo */
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #fff;
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.card-hover {
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.card-img-wrapper {
  overflow: hidden;
  height: 250px;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card-hover:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
  background: var(--success-color);
  border: none;
}

.btn-success:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* WhatsApp Button */
.whatsapp-btn {
  background: var(--success-color);
  border: none;
  font-size: 1.1rem;
  padding: 1rem;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: scale(1.02);
}

.whatsapp-btn i {
  font-size: 1.3rem;
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

/* Feature Boxes */
.feature-box {
  background: #fff;
  border-radius: 15px;
  transition: var(--transition);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-box i {
  color: var(--primary-color);
}

.feature-box h4 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Info Cards */
.info-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-card h4 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Carousel */
.carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

/* Construction Box */
.construction-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.construction-box:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-5px);
}

.construction-icon {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.construction-box a {
  transition: var(--transition);
}

.construction-box a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Contact Section */
.contact-info {
  margin-top: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
}

.contact-info h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-info a:hover {
  color: #0a58ca;
  text-decoration: underline !important;
}

/* Form */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

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

.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

footer a {
  transition: var(--transition);
}

footer a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px;
    min-height: auto;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .carousel-item img {
    height: 300px;
  }

  .card-img-wrapper {
    height: 200px;
  }

  .hero-logo-img {
    max-width: 250px;
  }

  .navbar-nav .nav-link {
    margin: 5px 0;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }

  .hero-section {
    padding-top: 60px;
  }

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

  .hero-logo-img {
    max-width: 200px;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success/Error Messages */
.alert {
  border-radius: 8px;
  border: none;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
}
