/* ===== GRAU ISERN — Design System ===== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }

:root {
  --primary: #c7004c;
  --primary-dark: #a0003d;
  --primary-light: #fce4ec;
  --primary-50: #fff0f3;
  --dark: #1a1a2e;
  --dark-800: #2d2d44;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #868e96;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

::selection { background: var(--primary); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
iframe { max-width: 100%; }

/* Utility */
.no-scroll { overflow: hidden; }

/* Skip link */
.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 0.75rem 1.5rem; z-index: 10000; border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 0; }

/* ===== NAVIGATION ===== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.06); transition: var(--transition); }
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo span { font-size: 1.1rem; font-weight: 700; color: var(--dark); letter-spacing: -0.02em; }
.nav-logo span em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a { text-decoration: none; font-size: 0.78rem; font-weight: 500; color: var(--gray-600); padding: 0.5rem 0.9rem; border-radius: 8px; transition: var(--transition); display: flex; align-items: center; gap: 0.3rem; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--dark); background: var(--gray-50); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 0.5rem 1.25rem !important; border-radius: 8px; font-weight: 600 !important; font-size: 0.8rem !important; }
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; transform: translateY(-1px); }

/* Language flags */
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; margin: 0 0.8rem; }
.lang-flag { width: 24px; height: 16px; border-radius: 2px; border: 1px solid var(--gray-300); cursor: pointer; opacity: 0.5; transition: var(--transition); background-size: cover; background-position: center; }
.lang-flag:hover, .lang-flag.active { opacity: 1; border-color: var(--primary); transform: scale(1.15); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.lang-flag[data-lang="ca"] { background-image: url(cat.jpg); }
.lang-flag[data-lang="es"] { background-image: url(es.jpg); }
@media (max-width: 768px) {
  .lang-switcher { margin: 0; justify-content: center; padding: 0.5rem 0; }
}

/* Dropdown */
.dropdown-content { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.12); padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); border: 1px solid var(--gray-100); z-index: 100; }
.nav-links > li:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown-content a { display: block; padding: 0.6rem 1rem; text-decoration: none; font-size: 0.85rem; color: var(--gray-600); border-radius: 8px; transition: var(--transition); }
.dropdown-content a:hover { background: var(--gray-50); color: var(--dark); }
.dropdown-content a em { font-style: normal; color: var(--primary); font-weight: 600; }
.dropdown-arrow { font-size: 0.6rem; transition: var(--transition); }
.nav-links > li:hover .dropdown-arrow { transform: rotate(180deg); }

/* Mobile menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile dropdown */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: 0.25rem; transform: translateY(-120%); opacity: 0; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); border-bottom: 1px solid var(--gray-200); pointer-events: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links > li > a { padding: 0.6rem 0.75rem; font-size: 0.95rem; }
  .dropdown-content { position: static; box-shadow: none; border: none; padding: 0 0 0 1rem; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; }
  .nav-links > li.open .dropdown-content { display: block; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; background: linear-gradient(135deg, #1a1a2e 0%, #2d1130 40%, #c7004c 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 100%; background: radial-gradient(circle, rgba(199,0,76,0.15) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, #fff, transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1200px; margin: 0 auto; padding: 0 2rem; gap: 4rem; align-items: center; width: 100%; position: relative; z-index: 1; }
.hero-content { padding-top: 72px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(199,0,76,0.25); color: #ff91b5; padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 0.3px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; line-height: 1.12; color: #fff; margin-bottom: 1.25rem; font-weight: 700; }
.hero h1 em { font-style: normal; color: #ff91b5; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 520px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: var(--transition); border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(199,0,76,0.3); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--primary); background: rgba(199,0,76,0.1); transform: translateY(-2px); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--gray-300); }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.hero-rating { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.6rem 1.1rem; background: rgba(255,255,255,0.05); border-radius: 10px; }
.hero-rating .stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 2px; }
.hero-rating span { color: rgba(255,255,255,0.45); font-size: 0.8rem; }

.hero-visual { display: flex; align-items: center; justify-content: center; padding-top: 72px; }
.hero-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 2.5rem; width: 100%; max-width: 420px; }
.hero-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(199,0,76,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #ff6b9d; }
.hero-card-info h3 { color: #fff; font-size: 1rem; font-weight: 600; }
.hero-card-info p { color: rgba(255,255,255,0.45); font-size: 0.8rem; margin: 0; }
.hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-item { text-align: center; padding: 1rem; border-radius: 12px; background: rgba(255,255,255,0.04); }
.stat-item .num { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-item .label { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 0.35rem; }

/* ===== SECTIONS ===== */
.section { padding: 7rem 0; }
.section-dark { background: var(--dark); }
.section-gray { background: var(--gray-50); padding: 7rem 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--dark); margin-bottom: 1rem; line-height: 1.2; position: relative; padding-bottom: 1.25rem; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary); border-radius: 3px; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; line-height: 1.7; }
.section-header.light h2 { color: #fff; }
.section-header.light h2::after { background: rgba(255,255,255,0.4); }
.section-header.light p { color: rgba(255,255,255,0.6); }
.section-tag { display: inline-block; background: var(--primary); color: #fff; padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 0.75rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, #1a1a2e 0%, #2d1130 50%, #c7004c 100%); padding: 10rem 0 5rem; text-align: center; position: relative; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to top, #fff, transparent); }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 1.1rem; max-width: 540px; margin: 0 auto; }
.page-hero.has-bg { background-size: cover; background-position: center; position: relative; }
.page-hero.has-bg::before { content: ''; position: absolute; inset: 0; background: rgba(26,26,46,0.65); z-index: 0; }
.page-hero.has-bg .container { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .page-hero.has-bg::before { background: rgba(26,26,46,0.75); }
}
.breadcrumbs { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; }
.breadcrumbs a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumbs a:hover { color: #ff91b5; }
.breadcrumbs span { color: rgba(255,255,255,0.7); }

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--gray-50); border-radius: 20px; padding: 2rem; transition: var(--transition); border: 1px solid transparent; position: relative; overflow: hidden; cursor: default; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover { border-color: var(--gray-200); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.service-card:hover::before { transform: scaleX(1); }
.service-card a { text-decoration: none; color: inherit; display: block; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--primary); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }
.service-card .link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-top: 1rem; transition: var(--transition); }
.service-card:hover .link-arrow { gap: 0.6rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--dark); margin-bottom: 1.25rem; line-height: 1.2; }
.about-text p { color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; }
.about-text .since { display: inline-block; background: var(--primary); color: #fff; padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }
.about-features { display: grid; gap: 1rem; margin-top: 1.5rem; }
.about-feature { display: flex; gap: 1rem; align-items: flex-start; }
.about-feature .check { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.about-feature div h4 { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.about-feature div p { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { background: #fff; border-radius: 20px; padding: 2rem; text-align: center; border: 1px solid var(--gray-200); transition: var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.team-avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--gray-100)); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--primary); font-weight: 700; border: 3px solid var(--gray-100); overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.team-card .role { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.5; }

/* ===== STATS BAR ===== */
.stats-bar { background: linear-gradient(135deg, #8b0038, #c7004c); padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat h3 { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; }
.stat p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 0.5rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--dark); margin-bottom: 0.75rem; line-height: 1.2; }
.contact-info > p { color: var(--gray-600); margin-bottom: 2rem; }
.contact-details { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item div h4 { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.contact-item div p, .contact-item div a { font-size: 0.9rem; color: var(--gray-600); text-decoration: none; transition: var(--transition); }
.contact-item div a:hover { color: var(--primary); }
.schedule-box { margin-top: 2rem; padding: 1.5rem; background: var(--gray-50); border-radius: 16px; }
.schedule-box h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; font-size: 0.85rem; }
.schedule-grid .day { color: var(--gray-600); }
.schedule-grid .time { color: var(--dark); font-weight: 500; text-align: right; }
.schedule-grid .closed { color: var(--primary); font-weight: 600; text-align: right; }

/* Contact form */
.contact-form { background: var(--gray-50); border-radius: 20px; padding: 2.5rem; border: 1px solid var(--gray-200); }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-form > p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 0.9rem; font-family: inherit; transition: var(--transition); background: #fff; color: var(--dark); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(199,0,76,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { grid-column: 1 / -1; }
.form-submit button { width: 100%; justify-content: center; }

/* Map */
.map-container { width: 100%; min-height: 400px; border-radius: 20px; overflow: hidden; border: 1px solid var(--gray-200); }
.map-container iframe { width: 100%; height: 400px; border: 0; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.blog-card { background: #fff; border-radius: 20px; border: 1px solid var(--gray-200); overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.blog-card-img { height: 200px; overflow: hidden; background: var(--gray-100); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.75rem; }
.blog-card .meta { font-size: 0.78rem; color: var(--gray-500); display: flex; gap: 1rem; margin-bottom: 0.75rem; align-items: center; }
.blog-card .meta span { display: flex; align-items: center; gap: 0.35rem; }
.blog-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.35; }
.blog-card h3 a { text-decoration: none; color: var(--dark); transition: var(--transition); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 1rem; }
.blog-card .read-more { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; transition: var(--transition); }
.blog-card .read-more:hover { gap: 0.6rem; }

/* News article detail */
.article-hero-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 20px; margin-bottom: 2rem; }
.article-content { max-width: 780px; margin: 0 auto; line-height: 1.95; color: var(--gray-700); font-size: 1.05rem; }
.article-content h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--dark); margin-bottom: 1.25rem; line-height: 1.25; }
.article-content h3 { font-size: 1.2rem; color: var(--dark); margin: 2.5rem 0 1rem; font-weight: 700; }
.article-content p { margin-bottom: 1.25rem; }
.article-meta { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2rem; color: var(--gray-500); font-size: 0.9rem; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 0.35rem; }
.article-share { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: 1.5rem; background: var(--gray-50); border-radius: 16px; margin-top: 3rem; }
.article-share span { font-weight: 600; color: var(--dark); }
.article-share a { color: var(--gray-600); font-weight: 500; text-decoration: none; padding: 0.4rem 1rem; border-radius: 8px; border: 1px solid var(--gray-200); background: #fff; transition: var(--transition); font-size: 0.85rem; }
.article-share a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-50); }

@media (max-width: 768px) {
  .article-content h2 { font-size: 1.5rem; }
  .article-content { font-size: 0.95rem; }
  .article-hero-img { max-height: 250px; }
  .blog-card-img { height: 160px; }
  .blog-card-body { padding: 1.25rem; }
  .blog-card h3 { font-size: 1rem; }
}

/* ===== PROPERTIES ===== */
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.property-card { background: #fff; border-radius: 20px; border: 1px solid var(--gray-200); overflow: hidden; transition: var(--transition); }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.property-img { height: 200px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 2rem; }
.property-body { padding: 1.25rem; }
.property-body .type { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.5rem; }
.property-body .price { font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.property-body h4 { font-size: 0.95rem; font-weight: 600; margin: 0.25rem 0; }
.property-body .location { font-size: 0.85rem; color: var(--gray-500); }
.property-body .details { display: flex; gap: 1rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--gray-600); }
.property-body .details span { display: flex; align-items: center; gap: 0.3rem; }
.property-card .sold { position: absolute; top: 1rem; right: 1rem; background: var(--gray-600); color: #fff; padding: 0.25rem 0.75rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }

/* ===== CLIENT AREA ===== */
.login-box { max-width: 440px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 2.5rem; border: 1px solid var(--gray-200); }
.login-box .logo-small { text-align: center; margin-bottom: 1.5rem; }
.login-box .logo-small img { height: 48px; margin: 0 auto; }
.login-box h2 { text-align: center; font-size: 1.3rem; margin-bottom: 0.5rem; }
.login-box > p { text-align: center; color: var(--gray-600); font-size: 0.9rem; margin-bottom: 1.5rem; }
.login-box .form-group { margin-bottom: 1rem; }
.login-box .form-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 1rem; }
.login-box .form-options label { display: flex; align-items: center; gap: 0.4rem; color: var(--gray-600); cursor: pointer; }
.login-box .form-options a { color: var(--primary); text-decoration: none; }
.login-box .form-options a:hover { text-decoration: underline; }
.login-box .btn { width: 100%; justify-content: center; }

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; color: var(--dark); margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1.15rem; color: var(--dark); margin: 1.5rem 0 0.5rem; }
.legal-content p { color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.5rem; color: var(--gray-600); line-height: 1.7; }
.legal-content strong { color: var(--dark); }

/* ===== SERVICE DETAIL ===== */
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.service-detail-content h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.service-detail-content .lead { font-size: 1.1rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.5rem; }
.service-detail-content ul { margin: 0 0 1.5rem 1.5rem; color: var(--gray-600); line-height: 1.8; }
.service-detail-content ul li { margin-bottom: 0.35rem; }
.service-detail-content ul li strong { color: var(--dark); }
.service-detail-content .cta-box { background: var(--gray-50); border-radius: 16px; padding: 1.5rem; margin-top: 2rem; }
.service-detail-content .cta-box h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-detail-content .cta-box p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1rem; }
.service-sidebar { position: sticky; top: 100px; }
.service-sidebar .card { background: var(--gray-50); border-radius: 20px; padding: 1.5rem; margin-bottom: 1.5rem; }
.service-sidebar .card h4 { font-size: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.service-sidebar .card ul { list-style: none; }
.service-sidebar .card ul li { margin-bottom: 0.5rem; }
.service-sidebar .card ul a { text-decoration: none; color: var(--gray-600); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; border-radius: 8px; transition: var(--transition); }
.service-sidebar .card ul a:hover, .service-sidebar .card ul a.active { background: rgba(199,0,76,0.08); color: var(--primary); }
.service-sidebar .card ul a .arrow { margin-left: auto; font-size: 0.7rem; }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, #a0003d 0%, #c7004c 50%, #e91e63 100%); padding: 6rem 0; text-align: center; }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 540px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-section .btn { font-size: 1.05rem; padding: 1rem 2.5rem; }
.cta-section .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-section .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.15); }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); }
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
footer h4 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.25rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.6rem; }
footer ul a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; font-size: 0.8rem; width: 100%; }

/* ===== TRUST BAR ===== */
.trust-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2.5rem; text-align: center; align-items: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem; transition: var(--transition); }
.trust-item:hover { transform: translateY(-2px); }
.trust-item svg { width: 28px; height: 28px; color: var(--primary); }
.trust-item span { font-weight: 700; color: var(--gray-700); font-size: 0.85rem; letter-spacing: 0.5px; }

/* ===== PROCESS STEPS ===== */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.process-step { text-align: center; padding: 2rem; position: relative; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; margin: 0 auto 1rem; }
.process-step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--gray-600); }

/* ===== BENEFITS GRID ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.benefit-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--gray-50); border-radius: 16px; }
.benefit-item .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.benefit-item h4 { font-size: 0.95rem; font-weight: 600; }
.benefit-item p { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-item { padding: 1.5rem; background: #fff; border-radius: 16px; border: 1px solid var(--gray-200); transition: var(--transition); }
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.feature-item p { font-size: 0.85rem; color: var(--gray-600); }

/* ===== HIGHLIGHT LIST ===== */
.highlight-list { list-style: none; margin: 0 0 1.5rem 0 !important; }
.highlight-list li { padding: 0.5rem 0; padding-left: 2rem; position: relative; }
.highlight-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ===== SERVICE IMAGE ===== */
.service-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.service-image img { width: 100%; height: auto; object-fit: cover; }
.service-header-image { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ===== PAGE NAV ===== */
.page-nav { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 0; position: sticky; top: 72px; z-index: 99; }
.page-nav-inner { display: flex; gap: 0; overflow-x: auto; }
.page-nav a { display: flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.25rem; font-size: 0.85rem; font-weight: 500; color: var(--gray-600); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: var(--transition); }
.page-nav a:hover, .page-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== SECTION NUMBER ===== */
.section-number { font-size: 0.85rem; font-weight: 800; color: var(--primary); letter-spacing: 1px; display: block; margin-bottom: 0.5rem; }

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--gray-200); text-align: center; }
.testimonial-card .quote { font-size: 0.95rem; color: var(--gray-600); font-style: italic; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-card .author { font-weight: 600; font-size: 0.9rem; }
.testimonial-card .role { font-size: 0.8rem; color: var(--gray-500); }

/* ===== NEWSLETTER ===== */
.newsletter-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 1.5rem auto 0; }
.newsletter-form input { flex: 1; padding: 0.7rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 0.9rem; font-family: inherit; }
.newsletter-form input:focus { outline: none; border-color: var(--primary); }
.newsletter-form button { padding: 0.7rem 1.5rem; }

/* ===== COOKIE CONSENT ===== */
.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: rgba(255,255,255,0.8); padding: 1rem 2rem; z-index: 9999; display: none; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.cookie-consent.show { display: flex; }
.cookie-consent a { color: var(--primary); text-decoration: underline; }
.cookie-consent .btn { font-size: 0.85rem; padding: 0.5rem 1.25rem; }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: 0 4px 15px rgba(199,0,76,0.3); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== FLOATING PHONE BUTTON ===== */
.floating-phone { position: fixed; bottom: 5.5rem; right: 1.5rem; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 997; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); text-decoration: none; animation: phoneGlow 12s ease-in-out infinite; }
.floating-phone:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.6); background: #20bd5a; }
@keyframes phoneGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.25); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,0.45); }
}

/* ===== FOOTER ADMIN GEAR ===== */
.footer-credits { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.footer-admin-gear { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: rgba(255,255,255,0.25); text-decoration: none; transition: var(--transition); flex-shrink: 0; }
.footer-admin-gear:hover { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.footer-admin-gear svg { width: 13px; height: 13px; }

/* Remove old floating admin button */
.admin-gear-btn { display: none; }

/* ===== ACCESSIBILITY ===== */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-in { opacity: 1; animation: none !important; }
  .fade-in.visible { animation: none !important; opacity: 1; }
  .stat-count { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== SERVICE LIST GRID (2-column) ===== */
.service-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.service-list-grid li { padding: 0.5rem 0; padding-left: 1.75rem; position: relative; }
.service-list-grid li::before { content: '›'; position: absolute; left: 0; color: var(--primary); font-weight: 700; font-size: 1.25rem; }

/* ===== PRICING CARD ===== */
.pricing-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--gray-200); text-align: center; transition: var(--transition); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); }

.stat-count { display: inline-block; }
.stat-count.counted { transform: scale(1.06); transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* Hero with background image */
.hero-portada { background: linear-gradient(135deg, rgba(26,26,46,0.65) 0%, rgba(199,0,76,0.58) 100%), url(portada-hero.jpg) center/cover no-repeat; }
.hero-portada::before { background: none; }
.hero-portada .hero-content { padding-top: 0; }
.hero-portada h1 { text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-portada p { text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
.hero-portada .hero-rating { background: rgba(255,255,255,0.1); }

/* Client carousel */
.clients-carousel { overflow: hidden; padding: 1rem 0; position: relative; }
.clients-track { display: flex; gap: 4rem; width: max-content; will-change: transform; }
.clients-track:hover { animation-play-state: paused; }
.client-slide { flex-shrink: 0; width: 200px; display: flex; align-items: center; justify-content: center; }
.client-slide img { max-width: 180px; max-height: 100px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.4s ease; }
.client-slide img:hover { filter: grayscale(0%); opacity: 1; }

/* ===== TEAM AVATAR ===== */
.team-avatar-lg { width: 140px !important; height: 140px !important; border-radius: 20px !important; background: none !important; font-size: 0 !important; border: none !important; }
.team-avatar-lg img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.75rem; }
  .hero p { max-width: 460px; }
  .services-grid, .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-sidebar { position: static; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2.5rem; }
  .page-hero { padding: 8rem 0 4rem; }
  .section { padding: 5rem 0; }
  .section-gray { padding: 5rem 0; }
  .section-header { margin-bottom: 3rem; }
  .section-header h2 { font-size: 2.2rem; }
  .service-list-grid { grid-template-columns: 1fr; }
  .team-avatar-lg { width: 110px !important; height: 110px !important; }
  .client-slide { width: 150px; }
  .client-slide img { max-width: 130px; max-height: 70px; }
  .clients-track { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .hero { min-height: auto; padding: 8rem 0 5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1.5rem; }
  .hero-content { padding-top: 0; width: 100%; }
  .hero h1 { font-size: 1.9rem; line-height: 1.15; }
  .hero p { font-size: 0.95rem; max-width: 100%; margin-bottom: 1.5rem; }
  .hero-badge { font-size: 0.7rem; margin-bottom: 1rem; }
  .hero-visual { display: none; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { justify-content: center; text-align: center; width: 100%; }
  .hero-rating { font-size: 0.75rem; }
  .hero-portada { background-attachment: scroll; }
  .hero-portada h1 { font-size: 1.7rem; }
  .hero-portada p { font-size: 0.85rem; }

  .page-hero { padding: 8rem 0 4rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 0.9rem; max-width: 90%; }
  .breadcrumbs { font-size: 0.75rem; }

  .section { padding: 3.5rem 0; }
  .section-gray { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 1.6rem; padding-bottom: 0.9rem; }
  .section-header h2::after { width: 45px; height: 2px; }
  .section-header p { font-size: 0.9rem; }

  .services-grid, .properties-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem; }
  .service-card h3 { font-size: 1rem; }
  .service-card p { font-size: 0.85rem; }
  .service-icon { width: 40px; height: 40px; }

  .features-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-text h2 { font-size: 1.6rem; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .team-card { padding: 1.25rem; }
  .team-avatar { width: 64px; height: 64px; font-size: 1.25rem; }
  .team-card h4 { font-size: 0.9rem; }

  .stats-bar { padding: 2.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat h3 { font-size: 1.8rem; }
  .stat p { font-size: 0.8rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info h2 { font-size: 1.8rem; }
  .contact-details { gap: 1rem; }
  .contact-item .icon { width: 36px; height: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.25rem; }
  .map-container { min-height: 280px; }
  .map-container iframe { height: 280px; }

  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .blog-card h3 { font-size: 1rem; }

  .cta-section { padding: 4rem 0; }
  .cta-section h2 { font-size: 1.8rem; }
  .cta-section p { font-size: 0.9rem; max-width: 90%; }
  .cta-section .btn { width: 100%; justify-content: center; }
  .cta-section > .container > div { flex-direction: column; gap: 0.75rem; }
  .cta-section > .container > div .btn { width: 100%; }

  .service-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-detail-content h1 { font-size: 1.5rem; }
  .service-detail-content .lead { font-size: 0.95rem; }
  .service-sidebar { position: static; margin-top: 1.5rem; }
  .service-sidebar .card { padding: 1.25rem; }

  .legal-content h2 { font-size: 1.25rem; }
  .legal-content h3 { font-size: 1.05rem; }
  .legal-content p, .legal-content li { font-size: 0.88rem; }
  .legal-content ul { margin-left: 1.25rem; }

  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  footer { padding: 2.5rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1/-1; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; font-size: 0.75rem; }

  .floating-phone { bottom: 5rem; right: 1rem; width: 48px; height: 48px; }
  .floating-phone svg { width: 18px; height: 18px; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }
  .back-to-top svg { width: 16px; height: 16px; }

  .newsletter-form { flex-direction: column; margin-left: auto; margin-right: auto; }
  .newsletter-form input { width: 100%; }
  .newsletter-form button { width: 100%; justify-content: center; }

  .pricing-card { padding: 1.5rem; }

  .login-box { padding: 1.5rem; margin: 0 1rem; }

  .property-img { height: 160px; }
  .property-body h4 { font-size: 0.88rem; }

  .benefit-item { padding: 1rem; }

  .cookie-consent { flex-direction: column; text-align: center; padding: 0.75rem 1.25rem; gap: 0.5rem; }
  .cookie-consent .btn { width: 100%; justify-content: center; }

  .team-avatar-lg { width: 100px !important; height: 100px !important; }
  .client-slide { width: 100px; }
  .client-slide img { max-width: 90px; }
  .clients-track { gap: 1.5rem; }

  .page-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-nav a { padding: 0.7rem 1rem; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1rem; }

  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: 0.85rem; }
  .hero-badge { font-size: 0.65rem; padding: 0.3rem 0.75rem; }
  .hero-badge svg { width: 12px; height: 12px; }

  .page-hero h1 { font-size: 1.5rem; }

  .section-header h2 { font-size: 1.4rem; }
  .section-header p { font-size: 0.85rem; }
  .section-tag { font-size: 0.65rem; padding: 0.25rem 0.75rem; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 1rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat h3 { font-size: 1.5rem; }

  .btn { padding: 0.7rem 1.25rem; font-size: 0.85rem; width: 100%; justify-content: center; }
  .btn-outline-dark { width: auto; }
  .hero-buttons .btn, .cta-section .btn { width: 100%; }
  .hero-portada h1 { font-size: 1.4rem; }
  .hero-portada p { font-size: 0.8rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }

  .floating-phone { bottom: 4.5rem; right: 0.75rem; width: 44px; height: 44px; }
  .floating-phone svg { width: 16px; height: 16px; }
  .back-to-top { bottom: 0.75rem; right: 0.75rem; width: 34px; height: 34px; }
  .back-to-top svg { width: 14px; height: 14px; }

  .team-avatar-lg { width: 90px !important; height: 90px !important; }
  .client-slide { width: 80px; }
  .client-slide img { max-width: 70px; }
  .clients-track { gap: 1rem; }

  .contact-form { padding: 1rem; border-radius: 14px; }
  .map-container { min-height: 220px; }
  .map-container iframe { height: 220px; }

  .trust-bar { grid-template-columns: 1fr; }

  .service-card { padding: 1.25rem; }

  footer h4 { font-size: 0.85rem; }
  footer ul a { font-size: 0.8rem; }
}
