/* Modern, Elegant Stylesheet for Andrés Ramos Ramírez - Abogado */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..700;1,400..700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties / Design System */
:root {
  /* Color Palette matching the business card */
  --bg-primary: #FAF8F5;       /* Off-white / Cream */
  --bg-card: #FAF8F5;          /* Card base background */
  --bg-accent-blob: #F3EFE9;   /* Off-white decorative blobs */
  --text-dark: #121E31;        /* Deep Navy Blue */
  --color-gold: #B5945F;       /* Warm Gold / Brass */
  --color-gold-hover: #9E7D47; /* Hover gold state */
  --text-muted: #5C6779;       /* Muted grey-blue for text */
  --white: #FFFFFF;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px rgba(18, 30, 49, 0.05);
  --shadow-premium: 0 10px 30px rgba(181, 148, 95, 0.12), 0 1px 8px rgba(18, 30, 49, 0.04);
  --shadow-hover: 0 20px 40px rgba(18, 30, 49, 0.12);
  --border-radius: 16px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Background elements */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-decorations::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background-color: var(--bg-accent-blob);
  filter: blur(80px);
  opacity: 0.6;
}

.bg-decorations::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background-color: var(--bg-accent-blob);
  filter: blur(80px);
  opacity: 0.6;
}

/* Navigation bar */
header {
  background-color: var(--text-dark);
  width: 100%;
  border-bottom: 2px solid var(--color-gold);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  width: 36px;
  height: 36px;
  fill: var(--color-gold);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-gold);
}

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

/* Main content wrapper */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Center Layout for Hero */
.hero-center {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
  padding-top: 2rem;
}

.hero-logo-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.hero-logo-large {
  width: 72px;
  height: 72px;
}

/* Info Section styling */
.hero-center .hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-dark);
}

@media (max-width: 576px) {
  .hero-name {
    font-size: 2.5rem;
  }
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-top: -0.5rem;
}

.hero-specialty {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-top: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  padding: 0.5rem 2rem;
  display: inline-block;
  max-width: max-content;
  margin: 0.5rem auto;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 3D Interactive Card Container */
.card-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.card-wrapper {
  perspective: 1500px; /* Enable 3D depth */
  width: 100%;
  max-width: 560px; /* Matching standard aspect ratio of card 1.75:1 approx */
  aspect-ratio: 1.75 / 1;
  cursor: pointer;
}

@media (max-width: 480px) {
  .card-wrapper {
    aspect-ratio: 1.6 / 1; /* Slightly more compact for smaller mobile views */
  }
}

.business-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-premium);
}

.card-wrapper:hover .business-card-3d,
.card-wrapper.flipped .business-card-3d {
  transform: rotateY(180deg);
}

/* Card Front & Back base styles */
.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  background-color: var(--bg-card);
  border: 1px solid rgba(181, 148, 95, 0.2);
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

@media (max-width: 480px) {
  .card-face {
    padding: 1.25rem 1.5rem;
  }
}

/* Card Front Elements */
.card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

/* Front card blobs */
.card-front::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 40%;
  height: 60%;
  background-color: var(--bg-accent-blob);
  border-radius: 50%;
  z-index: 1;
}

.card-front::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 35%;
  height: 60%;
  background-color: var(--bg-accent-blob);
  border-radius: 50%;
  z-index: 1;
}

.card-decor-corner {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-top: 1px solid rgba(181, 148, 95, 0.4);
  border-right: 1px solid rgba(181, 148, 95, 0.4);
  border-top-right-radius: 6px;
  z-index: 2;
  pointer-events: none;
}

.card-header {
  position: relative;
  z-index: 3;
}

.card-logo {
  width: 48px;
  height: 48px;
  fill: var(--color-gold);
}

@media (max-width: 480px) {
  .card-logo {
    width: 36px;
    height: 36px;
  }
}

.card-body {
  position: relative;
  z-index: 3;
  margin: 1rem 0;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.card-role {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-top: 0.15rem;
  text-transform: uppercase;
}

.card-divider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.card-line {
  width: 45px;
  height: 2.5px;
  background-color: var(--color-gold);
}

.card-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .card-name { font-size: 1.35rem; }
  .card-role { font-size: 0.9rem; }
  .card-subtitle { font-size: 0.55rem; }
  .card-line { width: 30px; }
}

.card-footer {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.card-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.card-info-item:hover {
  color: var(--color-gold);
}

.card-info-icon {
  width: 14px;
  height: 14px;
  fill: var(--color-gold);
}

@media (max-width: 480px) {
  .card-info-item {
    font-size: 0.65rem;
  }
  .card-info-icon {
    width: 11px;
    height: 11px;
  }
}

/* Card Back Elements */
.card-back {
  transform: rotateY(180deg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--bg-card);
}

@media (max-width: 480px) {
  .card-back {
    padding: 1.25rem 1.25rem;
    gap: 0.75rem;
  }
}

/* Back card decorative corners */
.card-back-corners {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  pointer-events: none;
  z-index: 1;
}

.card-back-corners::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 25px;
  height: 25px;
  border-top: 1px solid rgba(181, 148, 95, 0.4);
  border-left: 1px solid rgba(181, 148, 95, 0.4);
  border-top-left-radius: 6px;
}

.card-back-corners::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 25px;
  height: 25px;
  border-top: 1px solid rgba(181, 148, 95, 0.4);
  border-right: 1px solid rgba(181, 148, 95, 0.4);
  border-top-right-radius: 6px;
}

.card-back-corners-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  pointer-events: none;
  z-index: 1;
}

.card-back-corners-bottom::before {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 25px;
  height: 25px;
  border-bottom: 1px solid rgba(181, 148, 95, 0.4);
  border-left: 1px solid rgba(181, 148, 95, 0.4);
  border-bottom-left-radius: 6px;
}

.card-back-corners-bottom::after {
  content: '';
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 25px;
  height: 25px;
  border-bottom: 1px solid rgba(181, 148, 95, 0.4);
  border-right: 1px solid rgba(181, 148, 95, 0.4);
  border-bottom-right-radius: 6px;
}

.card-quote-section {
  position: relative;
  z-index: 2;
}

.card-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-dark);
}

@media (max-width: 480px) {
  .card-quote {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

.card-qr-section {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-qr-wrapper {
  background-color: var(--white);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(18, 30, 49, 0.08);
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.card-qr-wrapper:hover {
  transform: scale(1.05);
}

.card-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .card-qr-wrapper {
    max-width: 90px;
    padding: 4px;
  }
}

/* Flip Hint Indicator */
.card-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  animation: bounce 2s infinite ease-in-out;
}

.card-hint:hover {
  color: var(--color-gold);
}

.card-hint-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Call to Action Grid Section */
.cta-section {
  margin-top: 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 0.75rem auto 0;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.contact-card {
  background-color: var(--white);
  border: 1px solid rgba(181, 148, 95, 0.12);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold);
}

.contact-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(181, 148, 95, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon-wrapper {
  background-color: var(--color-gold);
}

.contact-icon {
  width: 28px;
  height: 28px;
  fill: var(--color-gold);
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon {
  fill: var(--white);
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  color: var(--color-gold);
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-all;
}

.contact-button {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-button {
  color: var(--color-gold-hover);
  transform: translateX(4px);
}

.contact-button-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Detailed Information Section (About & Commitment) */
.about-section {
  margin-top: 6rem;
  background-color: var(--white);
  border: 1px solid rgba(181, 148, 95, 0.12);
  border-radius: var(--border-radius);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem 1.5rem;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-quote-box {
  background-color: var(--bg-primary);
  border-left: 4px solid var(--color-gold);
  padding: 2rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  position: relative;
}

.about-quote-box::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(181, 148, 95, 0.15);
  position: absolute;
  top: -10px;
  left: 10px;
  line-height: 1;
}

.about-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-dark);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.about-qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.about-qr-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.about-qr-frame {
  background-color: var(--bg-primary);
  border: 1px dashed var(--color-gold);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  max-width: 200px;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.about-qr-frame:hover {
  transform: scale(1.03);
  border-style: solid;
}

.about-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-qr-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
}

/* Simple Premium Form Section */
.form-section {
  margin-top: 6rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  background-color: var(--white);
  border: 1px solid rgba(181, 148, 95, 0.15);
  border-radius: var(--border-radius);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid rgba(18, 30, 49, 0.08);
  border-radius: 8px;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(181, 148, 95, 0.12);
}

.form-submit-btn {
  background-color: var(--text-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.form-submit-btn:hover {
  background-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(181, 148, 95, 0.25);
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* Footer styling */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  margin-top: 8rem;
  border-top: 3px solid var(--color-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  fill: var(--color-gold);
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-nav a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}
