/*
Theme Name: Torres Theme
Theme URI: https://torresconstructora.com
Author: Torres Constructora
Author URI: https://torresconstructora.com
Description: Tema personalizado para Torres Constructora & Consultores E.I.R.L.
Version: 1.1
Text Domain: torres-theme
*/
/* =========================================
   GLOBAL STYLES & VARIABLES
========================================= */
:root {
  --primary: #0a2540; /* Azul petróleo / corporativo */
  --primary-light: #164070;
  --secondary: #00a8cc; /* Celeste / turquesa */
  --accent: #f4a261; /* Naranja para botones */
  --accent-hover: #e76f51;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-gray: #666666;
  --bg-light: #ffffff;
  --bg-gray: #f4f7f6;
  --bg-dark: #121f2b;
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   TYPOGRAPHY
========================================= */
.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.text-center { text-align: center; }

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

/* =========================================
   LAYOUT UTILS
========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-gray {
  background-color: var(--bg-gray);
}

.bg-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.bg-dark .section-title,
.bg-dark .section-subtitle {
  color: var(--text-light);
}

/* =========================================
   HEADER & NAVBAR
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  padding: 5px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition);
}

.header.scrolled .nav-container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  max-height: 55px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.whatsapp-icon {
  color: #25D366;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 80px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  color: var(--text-light);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeUp 1s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeUp 1.2s ease;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  animation: fadeUp 1.4s ease;
}

.hero-trust {
  display: flex;
  gap: 30px;
  animation: fadeUp 1.6s ease;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item i {
  color: var(--secondary);
}

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

/* =========================================
   TRUST STRIP
========================================= */
.trust-strip {
  background-color: var(--primary);
  padding: 40px 0;
  position: relative;
  margin-top: -30px;
  z-index: 20;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-light);
}

.trust-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.trust-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.trust-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* =========================================
   ABOUT US
========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-gray);
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* =========================================
   MISSION & VISION
========================================= */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mv-card {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--secondary);
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-10px);
}

.mv-card i {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.mv-card h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* =========================================
   CORE VALUES
========================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.value-card {
  background-color: var(--bg-light);
  padding: 30px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.value-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.value-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* =========================================
   SERVICES
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon-wrapper {
  background: var(--primary);
  color: var(--secondary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  margin: 30px auto 10px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  background: var(--secondary);
  color: var(--text-light);
}

.service-content {
  padding: 20px 30px 30px;
  text-align: center;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.service-content p {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* =========================================
   SECTORS
========================================= */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.sector-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-gray);
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.sector-card:hover {
  background: var(--primary);
  color: var(--text-light);
}

.sector-card:hover p, .sector-card:hover h3 {
  color: var(--text-light);
}

.sector-icon {
  font-size: 3rem;
  color: var(--secondary);
}

.sector-info h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.sector-info p {
  color: var(--text-gray);
}

/* =========================================
   WORK PROCESS
========================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--secondary);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-number {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 auto 20px;
  border: 5px solid var(--bg-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.process-step:hover .process-number {
  background: var(--secondary);
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* =========================================
   PROJECTS GALLERY
========================================= */
.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: var(--text-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-overlay p {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 15px;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* =========================================
   WHY CHOOSE US
========================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-item {
  display: flex;
  gap: 20px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.benefit-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* =========================================
   INTERMEDIATE CTA
========================================= */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0 20px;
}

.cta-whatsapp {
  background-color: #25D366;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-whatsapp:hover {
  background-color: #1ebe57;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   FAQ
========================================= */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--secondary);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-gray);
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 200px;
}

/* =========================================
   BLOG
========================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.blog-img {
  height: 200px;
  background: #eee;
  overflow: hidden;
}

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

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content {
  padding: 25px;
}

.blog-category {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.blog-title {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.blog-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-link:hover {
  color: var(--accent-hover);
}

/* =========================================
   CONTACT
========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-gray);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

textarea.form-control {
  height: 120px;
  resize: vertical;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.1;
}

.footer-logo-text span {
  color: var(--secondary);
}

.footer p {
  color: #a0aec0;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0aec0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #a0aec0;
  font-size: 0.9rem;
}

/* =========================================
   FLOATING WHATSAPP
========================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-grid::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid, .mv-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    position: absolute;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: var(--bg-light);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    padding: 20px 0;
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-actions .btn {
    display: none;
  }
}

