/* ============================
   APARTAMENTOS SOL - Estilos
   Diseño moderno 2026
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --sol-blue: #1a4f7a;
  --sol-blue-light: #2a6fa8;
  --sol-gold: #c9a84c;
  --sol-gold-light: #e8c97a;
  --sol-white: #f9f7f2;
  --sol-dark: #1a1a2e;
  --sol-gray: #6b7280;
  --sol-gray-light: #f3f4f6;
  --sol-green: #25d366;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26,79,122,0.12);
  --shadow-lg: 0 8px 40px rgba(26,79,122,0.18);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--sol-white);
  color: var(--sol-dark);
  font-size: 16px;
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }

a {
  color: var(--sol-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--sol-gold); }

/* ---- HEADER / NAV ---- */
header {
  background: var(--sol-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--sol-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.logo-text {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-sub {
  color: var(--sol-gold-light);
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: var(--transition);
  text-decoration: none;
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,0.12);
  color: white;
}

nav a.nav-cta {
  background: var(--sol-gold);
  color: var(--sol-dark);
  font-weight: 700;
  margin-left: 0.5rem;
}

nav a.nav-cta:hover {
  background: var(--sol-gold-light);
  color: var(--sol-dark);
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--sol-blue) 0%, #0d2e4a 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('Portada/001w.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(26,79,122,0.85), rgba(13,46,74,0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  animation: fadeInUp 0.9s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--sol-gold);
  color: var(--sol-gold-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: white;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero h1 span {
  color: var(--sol-gold);
}

.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--sol-gold);
  color: var(--sol-dark);
}

.btn-primary:hover {
  background: var(--sol-gold-light);
  color: var(--sol-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--sol-green);
  color: white;
  border-color: var(--sol-green);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  color: rgba(255,255,255,0.9);
}

.hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--sol-gold);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero-stat span {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---- SECTIONS ---- */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sol-gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--sol-blue);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--sol-gray);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 3rem;
  font-weight: 300;
}

.section-alt {
  background: var(--sol-blue);
  color: white;
}

.section-alt .section-title {
  color: white;
}

.section-alt .section-subtitle {
  color: rgba(255,255,255,0.75);
}

.section-light {
  background: #eef4fa;
}

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid transparent;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--sol-gold);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--sol-blue), var(--sol-blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  color: var(--sol-blue);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--sol-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- PHOTO GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

.gallery-item:first-child { min-height: 380px; }
.gallery-item:not(:first-child) { min-height: 180px; }

/* ---- LOCATION ---- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.location-map iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.location-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.12);
  border: 1px solid var(--sol-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.location-item-text strong {
  display: block;
  color: var(--sol-blue);
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.2rem;
}

.location-item-text span {
  color: var(--sol-gray);
  font-size: 0.9rem;
}

/* ---- CONTACT SECTION ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.contact-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: var(--sol-gold-light);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.contact-card p, .contact-card a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.contact-card a:hover {
  color: var(--sol-gold-light);
}

.contact-card .contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}

.contact-card .btn-tel {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.contact-card .btn-tel:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* ---- TARIFF TABLE ---- */
.tariff-block {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.tariff-header {
  background: var(--sol-blue);
  color: white;
  padding: 1rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

table.tariff {
  width: 100%;
  border-collapse: collapse;
}

table.tariff th {
  background: #f0f5fa;
  color: var(--sol-blue);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

table.tariff td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e8f0f8;
  color: var(--sol-dark);
  font-size: 0.92rem;
}

table.tariff tr:last-child td {
  border-bottom: none;
}

table.tariff tr:hover td {
  background: #f7fbff;
}

table.tariff td.price {
  font-weight: 700;
  color: var(--sol-blue);
}

table.tariff td.month {
  font-weight: 700;
  color: var(--sol-gold);
  font-family: 'Playfair Display', serif;
  vertical-align: top;
}

.tariff-note {
  background: linear-gradient(135deg, #fff8e6, #fdf3d3);
  border-left: 4px solid var(--sol-gold);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--sol-dark);
}

.tariff-note strong {
  color: var(--sol-gold);
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.include-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--sol-dark);
}

.include-item::before {
  content: "✓";
  color: var(--sol-gold);
  font-weight: 700;
  font-size: 1rem;
}

/* ---- FOOTER ---- */
footer {
  background: var(--sol-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
  font-size: 1.4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--sol-gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--sol-green);
  color: white;
  padding: 0.85rem 1.4rem;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: white;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: white;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--sol-blue) 0%, #0d2e4a 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

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

.animate-in {
  animation: fadeInUp 0.7s ease both;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: #f0f5fa;
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  color: var(--sol-gray);
}

.breadcrumb a {
  color: var(--sol-blue);
}

.breadcrumb span {
  margin: 0 0.4rem;
}

/* ---- SEO META INFO ---- */
.seo-hidden {
  display: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .location-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; grid-row: auto; min-height: 280px; }
  .gallery-item:not(:first-child) { min-height: 160px; }
}

@media (max-width: 700px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--sol-blue); padding: 1rem; gap: 0.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  nav.open a { padding: 0.75rem 1rem; }
  .menu-toggle { display: flex; }
  .hero { min-height: 70vh; }
  .hero-stats { gap: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 1rem; }
  .section { padding: 3rem 1.5rem; }
}
