/* Modern Premium CSS for Cerrajeros Sant Andreu */
:root {
  --primary-color: #0F172A; /* Slate 900 */
  --secondary-color: #1E293B; /* Slate 800 */
  --accent-color: #F59E0B; /* Amber 500 */
  --accent-hover: #D97706; /* Amber 600 */
  --text-color: #334155; /* Slate 700 */
  --text-light: #64748B; /* Slate 500 */
  --bg-color: #F8FAFC; /* Slate 50 */
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

/* Typography */
.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: #CBD5E1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.4);
  color: var(--white);
}

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

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

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

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

.nav-link:hover {
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding-top: 140px; /* Offset for fixed header */
  padding-bottom: 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

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

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

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

/* Features/Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 158, 11, 0.3);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card .btn-link {
  color: var(--accent-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.service-card .btn-link:hover {
  gap: 0.75rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
  border-radius: 2rem;
  margin: 4rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: #CBD5E1;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section Premium Redesign */
.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--primary-color);
  text-align: left;
  font-family: inherit;
  transition: color 0.3s ease;
}

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

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--text-light);
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  stroke-width: 1.5px; /* Thinner arrow line */
}

.faq-question.active {
  color: var(--accent-color);
  padding-bottom: 0.5rem;
}

.faq-question.active svg {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  color: var(--text-light);
  opacity: 0;
  padding: 0 1.5rem;
  font-size: 0.95rem; /* More elegant reading size */
  line-height: 1.6;
}

.faq-answer.active {
  opacity: 1;
  padding-bottom: 1.25rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #CBD5E1;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-color);
  padding-left: 0.25rem;
}

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

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem;
  border-radius: 1rem;
}

.contact-info h3 { color: var(--white); }
.contact-info p { color: #CBD5E1; margin-bottom: 2rem; }

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item .icon {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  padding: 120px 0 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

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

.breadcrumb a:hover {
  color: var(--accent-color);
}

/* Inner Page Header */
.page-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 120px 0 4rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: #CBD5E1;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Inner Page Content */
.content-wrapper {
  max-width: 800px;
}

.content-wrapper h2 {
  margin-top: 3rem;
}

.content-wrapper p {
  margin-bottom: 1.5rem;
}

.content-wrapper ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    padding: 2rem 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .cta-section {
    margin: 2rem 0;
    padding: 4rem 1.5rem;
    border-radius: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .page-header h1 {
    font-size: 2.25rem;
  }
}

/* CSS HTML Infographic (Timeline/Steps) */
.seo-infographic {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
}

.seo-infographic-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.step-list {
  position: relative;
}

.step-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.step-item {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2.5rem;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.step-content {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.step-content h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.step-content p {
  margin-bottom: 0;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .step-list::before { left: 18px; width: 3px; }
  .step-number { width: 40px; height: 40px; font-size: 1.15rem; border-width: 3px; left: 0; }
  .step-item { padding-left: 3.5rem; }
}

/* Floating Phone Button */
.floating-phone-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #DC2626; /* Red 600 */
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.floating-phone-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(220, 38, 38, 0.5);
  color: white;
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

@media (max-width: 768px) {
  .floating-phone-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* Floating WhatsApp Button */



@media (max-width: 768px) {
  }


/* Mobile Utilities */
@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }
}
