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

:root {
  --primary: #572363;     /* Burgundy/Red accent typical of highest tier law firms like Sagardoy/Uría */
  --bg-color: #FFFFFF;    /* Pure stark white for whitespace dominance */
  --text-main: #1A1A1A;   /* Soft but deep Charcoal Black */
  --text-light: #737373;  /* Editorial light grey */
  --border-color: #EFEFEF;
  --green-wa: #25D366;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.8;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === HEADER EDITORIAL === */
.top-header {
  padding: 40px 5% 20px;
  background: var(--bg-color);
}
.top-container {
  display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 15px; }
.logo-img {
    width: 60px;
    height: 60px;
    background-image: url('./public/ne-logo-only.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    padding-right: 15px; /* Adds space before vertical bar */
    border-right: 1px solid var(--border-color);
}
.globe-icon { display: none; }

.brand-text h1 { 
  font-size: 1.8rem; 
  color: #2F3640 !important; /* A bit more charcoal to match image */
  letter-spacing: 2.5px; 
  text-transform: uppercase; 
  font-weight: 500;
  margin: 0;
  line-height: 1; 
}
.brand-text span { 
  font-family: 'Inter', sans-serif; 
  font-size: 0.75rem !important; 
  color: var(--text-light) !important; 
  letter-spacing: 4px !important; 
  text-transform: uppercase;
  margin-top: 4px; /* Separación como en el boceto proporcionado */
  display: block;
  line-height: 1;
}

.phones { font-size: 0.95rem; font-weight: 500; color: var(--text-main); display: flex; align-items: center; gap: 24px; letter-spacing: 1px;}
.phone-item { display: flex; align-items: center; gap: 8px; transition: color 0.3s ease;}
a.phone-item:hover { color: var(--primary); }
.phones i { color: var(--primary); font-size: 1.1rem; }
.btn-top { display: none; } /* Menos carga visual */

/* === NAVBAR === */
.main-navbar {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: flex-end; padding: 0 5%;}
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links li a {
  font-size: 0.75rem; 
  font-weight: 500; 
  color: var(--text-main); 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
  padding: 5px 0; 
  display: block; 
  position: relative;
}
.nav-links li a:hover { color: var(--primary); }
.nav-links li a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--primary); transition: width 0.3s ease;
}
.nav-links li a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; }

/* === DROPDOWNS === */
.dropdown { position: relative; }
.dropdown-menu { 
  display: none; position: absolute; top: 100%; left: -20px; 
  background: var(--bg-color); border-bottom: 2px solid var(--primary); 
  min-width: 280px; box-shadow: 0 15px 35px rgba(0,0,0,0.03); 
  padding: 20px 0; z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { 
  padding: 10px 30px !important; font-size: 0.8rem !important; 
  text-transform: none !important; color: var(--text-light) !important; letter-spacing: 0 !important;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { color: var(--primary) !important; transform: translateX(5px); }

/* === HERO EDITORIAL === */
.hero-banner {
  background: var(--bg-color);
  padding: 40px 0 80px; /* Tight top space, professional bottom */
}
.hero-container { 
  max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 80px; padding: 0 5%;
}
.hero-left { flex: 1.1; }
.hero-title { 
  font-size: 5rem; 
  line-height: 1; 
  margin-bottom: 25px; 
  letter-spacing: -1.5px; 
  text-shadow: none;
}
.hero-title span { color: var(--primary); display:block; font-style: italic;}
.hero-subtitle { 
  font-family: 'Inter', sans-serif; font-size: 1.1rem; color: var(--text-light); 
  margin-bottom: 50px; font-weight: 300; max-width: 500px; line-height: 1.9;
}
.hero-emblem { display: flex; gap: 20px; align-items: center; }
.emblem-icon { display: none; }
.btn-hero {
  display: inline-block; background-color: var(--text-main); color: var(--bg-color); 
  padding: 18px 50px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; 
  transition: all 0.4s ease; border: 1px solid var(--text-main); font-weight: 500; border-radius: 0; box-shadow: none;
}
.btn-hero:hover { background-color: var(--primary); border-color: var(--primary); color: white;}
.hero-right { flex: 0.9; }

.lawyer-img { 
  width: 100%; height: 600px; object-fit: cover; object-position: center top; 
  filter: grayscale(25%); transition: filter 0.6s ease;
  border-radius: 0; border: none; box-shadow: none; margin-bottom: 0;
}
.lawyer-img:hover { filter: grayscale(0%); }
.flags-bar { display: none; }

/* === INTRO STATEMENT (SAGARDOY STYLE) === */
.intro-statement { padding: 80px 5%; background: var(--bg-color); }
.statement-title { font-size: 2.5rem; line-height: 1.4; max-width: 900px; margin: 0 auto 40px; color: var(--text-main); font-weight: 500;}
.statement-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;}
.btn-statement { display: inline-block; background: var(--primary); color: white; padding: 15px 40px; font-family: 'Inter'; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; transition: 0.4s;}
.btn-statement.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary);}
.btn-statement:hover { background: var(--text-main); color: white; border-color: var(--text-main);}

/* === STATS BLOCK === */
.stats-block { background: var(--text-main); padding: 80px 5%; color: white;}
.stats-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; text-align: center;}
.stat-item { flex: 1; min-width: 250px;}
.stat-number { font-family: 'Playfair Display'; font-size: 4rem; color: white; margin-bottom: 10px; font-weight: 600; font-variant-numeric: lining-nums slashed-zero;}
.stat-label { font-family: 'Inter'; font-size: 1.1rem; color: #999; text-transform: uppercase; letter-spacing: 1px;}

/* === FINAL CTA === */
.final-cta { padding: 100px 5%; background: var(--border-color); }
.final-cta-title { font-size: 3rem; margin-bottom: 40px; }

/* === SUB-PAGES INTRO === */
.page-header { background: var(--bg-color); color: var(--text-main); padding: 40px 5% 40px; text-align: center; max-width: 1400px; margin: 0 auto; border-bottom: 1px solid var(--border-color);}
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; color: var(--text-main); display: block; }
.page-header p { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--text-light); font-weight: 300; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 0;}

/* === EDITORIAL CONTENT === */
.section-padding { padding: 80px 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.content-box { max-width: 800px; margin: 30px auto; padding: 0 5%;}
.content-box h2 { font-size: 2.2rem; margin-bottom: 25px; margin-top: 40px; color: var(--text-main) !important; font-weight: 500;}
.content-box p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.9; font-weight: 300;}

/* === SERVICES GRID === */
.gray-bg { background-color: #FAFAFA; }

/* === ABOUT LAYOUT (NUESTRO DESPACHO) === */
.about-layout { display: flex; align-items: flex-start; gap: 60px; max-width: 1400px; margin: 30px auto; padding: 0 5%; }
.about-photo { flex: 0 0 42%; width: 100%; position: sticky; top: 120px; }
.about-photo img { width: 100%; height: auto; object-fit: cover; display: block; border: 1px solid var(--border-color); padding: 10px; background: white;}
.about-text { flex: 1; margin-top: -12px;}
.about-text h2 { font-size: 2.5rem; margin-bottom: 30px; color: var(--text-main); font-weight: 500;}
.about-text p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 25px; line-height: 2; font-weight: 300;}

/* === VALUES QUOTE === */
.values-quote { max-width: 1000px; margin: 80px auto; padding: 60px 5%; text-align: center; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: #FAF9F8; border-radius: 4px; }
.quote-icon { font-size: 2rem; color: var(--primary); margin-bottom: 20px; opacity: 0.5;}
.values-quote blockquote { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text-main); font-weight: 600; font-style: italic; margin-bottom: 30px; line-height: 1.6;}
.quote-ref { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-light); font-style: normal; display: block; margin-top: 10px;}
.quote-body { font-size: 1.15rem; color: var(--text-light); line-height: 1.8; margin-bottom: 40px;}
.quote-cta p { font-family: 'Inter', sans-serif; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px;}
.quote-cta h3 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--primary); font-weight: 600;}
/* === RESPONSIVE & MOBILE === */
@media (max-width: 900px) {
  .top-container { flex-direction: column; gap: 20px; text-align: center;}
  .brand { flex-direction: column;}
  .phones { justify-content: center; }
  
  .nav-container { justify-content: space-between; align-items: center; padding: 0 5%;}
  .mobile-menu-btn { display: block; font-family: 'Inter'; font-size: 1.2rem; color: var(--text-main); font-weight: 500; padding: 15px;}
  .nav-links { 
    display: none; 
    flex-direction: column; 
    width: 100%; 
    gap: 0;
  }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    z-index: 200;
  }
  .nav-links li a { padding: 15px; border-bottom: 1px solid var(--border-color); text-align: center;}
  
  .dropdown-menu { position: static; box-shadow: none; border: none; border-left: 2px solid var(--primary); padding: 0;}
  .dropdown-menu a { padding-left: 30px !important; text-align: left;}
  
  .hero-container { flex-direction: column-reverse; text-align: center; gap: 40px;}
  .hero-left { padding-bottom: 30px;}
  .hero-title { font-size: 3.5rem; }
  .hero-subtitle { margin: 0 auto 30px;}
  .lawyer-img { height: 400px; margin:0 auto;}
  
  .footer-content { flex-direction: column; gap: 40px; text-align: center;}
  .contact-layout { flex-direction: column;}
  .about-layout { flex-direction: column; gap: 40px; }
  .about-photo { position: static; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .page-header h1 { font-size: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .top-header { padding: 30px 5%;}
  .content-box h2 { font-size: 1.8rem; }
  .content-box p { font-size: 1rem; }
}
.services { padding: 120px 0; }
.section-title { font-size: 3rem; text-align: left; margin-bottom: 80px; font-weight: 400;}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 60px 40px; }
.service-card { background: transparent; padding: 0; border: none; text-align: left; box-shadow: none; border-top: 1px solid var(--text-main); padding-top: 30px;}
.service-card:hover { transform: none; border-color: var(--primary); }
.service-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 500; }
.service-card p { color: var(--text-light); font-size: 1rem; line-height: 1.8; font-weight: 300;}

/* === BLOG & LISTS === */
.blog-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.blog-links a { display: block; color: var(--text-main); font-weight: 400; padding: 20px 0; border-bottom: 1px solid var(--border-color); font-size: 1.1rem; background: transparent;}
.blog-links a:hover { background: transparent; color: var(--primary); border-color: var(--primary);}
.srv-item { background: transparent; padding: 40px 0; border-bottom: 1px solid var(--border-color); border-radius: 0; box-shadow: none; margin-bottom: 0;}
.srv-item h3 { color: var(--text-main); font-size: 1.8rem; font-weight: 400; margin-bottom: 15px;}
.srv-item p { font-weight: 300; font-size: 1.1rem; color: var(--text-light); line-height: 1.8;}

/* === FOOTER MINIMALISTA === */
footer { background: var(--text-main); color: #888; padding: 100px 0 40px; font-size: 0.9rem;}
.footer-content { display: flex; justify-content: space-between; max-width: 1400px; margin: 0 auto; gap: 80px; flex-wrap: wrap;}
.footer-col { flex: 1; min-width: 300px; }
.footer-col h1 { color: white !important; font-size: 1.5rem; letter-spacing: 2px; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 25px; font-family: 'Inter', sans-serif; font-weight: 400; letter-spacing: 2px; text-transform: uppercase;}
.footer-col p { margin-bottom: 15px; font-weight: 300;}
.footer-bottom { text-align: center; margin-top: 80px; border-top: 1px solid #333; padding-top: 30px; font-weight: 300;}

/* === WHATSAPP BTN === */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; background-color: var(--green-wa); color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 1000; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; transition: 0.4s;
}
.whatsapp-float:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.2);}

/* === ANIMATIONS === */
.auto-fade { opacity: 0; transform: translateY(30px); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.auto-fade.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* === CONTACT === */
.contact-layout { 
  max-width: 1400px; 
  margin: 40px auto 80px; 
  display: flex !important; 
  gap: 60px; 
  padding: 0 5%;
}
.contact-info { flex: 1; }
.contact-form-page { flex: 1.2; background: var(--bg-color); border: 1px solid var(--border-color); padding: 50px; border-radius: 0;}
.contact-form-page input, .contact-form-page textarea, .contact-form-page select { width: 100%; border: none; border-bottom: 1px solid var(--border-color); padding: 15px 0; margin-bottom: 25px; border-radius: 0; font-family: 'Inter', sans-serif; background: transparent; font-size: 1rem; color: var(--text-main);}
.contact-form-page input:focus, .contact-form-page textarea:focus { outline: none; border-bottom-color: var(--text-main);}
.contact-form-page button { width: auto; display: inline-block; background: var(--text-main); color: white; padding: 15px 40px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; border-radius: 0; cursor: pointer; transition: 0.4s;}
.contact-form-page button:hover { background: var(--primary);}
