/* ============================================
   FIDELIS ASESORES - ESTILOS PRINCIPALES
   Clonado desde WordPress/Elementor
   ============================================ */

/* Variables CSS */
:root {
  --color-primary: #2E2D33;
  --color-secondary: #B59A6D;
  --color-text: #7A7A7A;
  --color-accent: #B59A6D;
  --color-bg-dark: #0D0D0D;
  --color-bg-light: #F5F4EF;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-gold: #D4AF37;
  --color-button-dark: #48566C;
  
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Roboto Slab", serif;
  --font-body: "DM Sans", sans-serif;
  
  --container-width: 1290px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  margin: 0;
  padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

h1 {
  font-size: clamp(32px, 5vw, 72px);
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
}

h3 {
  font-size: clamp(22px, 3vw, 32px);
}

h4 {
  font-size: clamp(18px, 2.5vw, 24px);
}

p {
  margin-bottom: var(--spacing-sm);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 60px;
  background-image: url('../images/hero-bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-wrapper {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.logo-container {
  position: absolute;
  top: 40px;
  left: 60px;
  z-index: 10;
  text-align: left;
  margin-bottom: 0;
}

.logo {
  width: 200px;
  height: auto;
  margin: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  max-width: 60%;
  line-height: 1.1;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
  -webkit-text-stroke-color: var(--color-white);
  stroke: var(--color-white);
}

.hero-description {
  color: rgba(255, 255, 255, 0.88);
  max-width: 380px;
  font-size: 1rem;
  line-height: 1.6;
  position: absolute;
  right: 60px;
  bottom: 160px;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-black);
  box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Corrección A — CTA hero (dorado) */
.hero-section .btn-primary {
  background-color: #D4B800;
  color: #1a1a1a;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 14px 28px;
  font-size: 0.95rem;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  align-self: flex-start;
  box-shadow: none;
}

.hero-section .btn-primary:hover {
  background-color: #b89e00;
  color: #1a1a1a;
}

.btn-secondary {
  background-color: var(--color-button-dark);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: row-reverse;
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-button-dark);
}

.btn-submit {
  background-color: rgba(17, 17, 17, 1);
  border-color: rgba(0, 0, 0, 1);
  color: rgba(255, 255, 255, 1);
  border-radius: 6px;
  min-width: 100%;
  padding: 14px 28px;
}

.btn-submit:hover {
  background-color: rgba(51, 51, 51, 1);
}

/* Services Section */
.services-section {
  background-color: var(--color-bg-dark);
  padding: 120px var(--spacing-md);
  color: var(--color-white);
}

.services-header {
  text-align: center;
  padding: 0 100px;
  margin-bottom: 30px;
}

.services-header h2 {
  color: var(--color-white);
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke-color: var(--color-white);
  stroke: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.services-header h3 {
  color: var(--color-white);
  font-size: 22px;
  font-weight: 400;
}

.services-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.service-card {
  flex: 1;
  min-width: 300px;
  padding: 0 20px 0 0;
}

.service-card:last-child {
  padding-right: 0;
}

.service-icon {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.service-icon svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

/* Corrección D — íconos Soluciones estratégicas */
.services-section .service-icon svg {
  width: 52px;
  height: 52px;
  color: #ffffff;
  opacity: 1;
}

.services-section .service-icon svg [stroke='#000000'],
.services-section .service-icon svg [stroke="#000000"] {
  stroke: #ffffff !important;
}

.services-section .service-icon svg [fill='#000000'],
.services-section .service-icon svg [fill="#000000"] {
  fill: #ffffff !important;
}

.service-card h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--spacing-xs);
}

.service-card p {
  color: var(--color-white);
  text-align: center;
}

/* About Section */
.about-section {
  padding: 240px var(--spacing-md);
}

#quienes-somos {
  padding-top: 80px;
  padding-bottom: 80px;
}

#quienes-somos h2 {
  margin-top: 0;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  padding-right: 80px;
}

.about-text h2 {
  margin-bottom: var(--spacing-md);
}

.about-text h4 {
  margin-top: 50px;
  margin-bottom: var(--spacing-xs);
}

.about-text h4:first-of-type {
  margin-top: 0;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-black);
  margin: 15px 0;
}

.about-image {
  flex: 0 0 auto;
  margin-top: 360px;
  margin-bottom: -120px;
  z-index: 1;
  text-align: right;
}

.about-image img {
  max-width: 100%;
  height: auto;
}

/* Sectors Section */
.sectors-section {
  padding: 80px var(--spacing-md);
}

.sectors-section .container > h2:first-of-type {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 0;
}

.sectors-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.sector-card {
  flex: 1;
  min-width: 250px;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.sector-icon {
  margin-bottom: var(--spacing-sm);
}

.sector-icon svg {
  width: 48px;
  height: 48px;
}

.sector-card h3 {
  margin-bottom: var(--spacing-xs);
}

.why-choose {
  margin-top: 120px;
}

.why-choose h2 {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 0 10px 0;
}

.features-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.feature-card {
  flex: 1;
  min-width: 250px;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
}

.feature-icon i {
  color: inherit;
}

.feature-card h3 {
  margin-bottom: var(--spacing-xs);
}

/* Por qué elegirnos — espaciado hacia el CTA */
#por-que-elegirnos {
  padding-bottom: 80px;
}

#por-que-elegirnos .btn-wrapper {
  margin-top: 3rem;
  width: fit-content;
  max-width: 100%;
}

/* Corrección C — botón compacto «Agendar diagnóstico» */
#por-que-elegirnos a.cta.btn-secondary {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  max-width: fit-content;
  background-color: #2d3748;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  box-sizing: border-box;
}

#por-que-elegirnos a.cta.btn-secondary:hover {
  background-color: #1f2937;
  color: #ffffff;
  border-color: transparent;
}

@media (min-width: 901px) {
  #por-que-elegirnos .btn-wrapper {
    text-align: left;
    margin-right: auto;
    margin-left: 0;
  }
}

/* CTA Section — imagen + texto en dos columnas (Opción B) */
.cta-section {
  padding: 80px 60px 140px;
}

.cta-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-content {
  display: block;
  padding: 0;
  margin-bottom: 0;
  background-color: transparent;
}

.cta-image {
  width: 100%;
}

.cta-section img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.cta-text {
  display: flex;
  gap: 0;
  margin-top: 0;
}

.cta-text-left {
  flex: 0 0 40%;
  padding-right: 0;
}

.cta-text-right {
  flex: 0 0 60%;
  font-size: 19px;
  padding-left: 100px;
}

/* Team Section */
.team-section {
  padding: 120px var(--spacing-md);
}

.team-header {
  display: flex;
  gap: 0;
  margin-bottom: 80px;
}

.team-header-left {
  flex: 0 0 40%;
}

.team-subtitle {
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}

.team-header-right {
  flex: 0 0 60%;
  font-size: 19px;
  padding-left: 100px;
}

.gallery {
  display: flex;
  gap: 30px;
  margin-top: 0;
  flex-wrap: wrap;
}

.gallery-item {
  flex: 1;
  min-width: 300px;
  padding: 0 30px 30px 0;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.gallery-item a {
  display: block;
}

/* Newsletter Section */
#newsletter.newsletter-section {
  background-color: #F0EBE0;
  color: #1a1a1a;
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.newsletter-intro {
  text-align: left;
}

#newsletter h2 {
  color: #1a1a1a;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Corrección E — subtítulo newsletter (ligero vs h2) */
#newsletter h3 {
  font-size: 1rem;
  font-weight: 400;
  color: #555555;
  line-height: 1.6;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

#newsletter p:not(.hidden) {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.newsletter-form-shell {
  min-width: 0;
}

#newsletter form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#newsletter .form-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#newsletter .form-group label {
  color: #444;
}

#newsletter input[type="text"],
#newsletter input[type="email"] {
  border: 1px solid #ccc;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  color: #1a1a1a;
  font-family: var(--font-body);
}

#newsletter input[type="text"]::placeholder,
#newsletter input[type="email"]::placeholder {
  color: #888;
}

#newsletter input[type="text"]:focus,
#newsletter input[type="email"]:focus {
  outline: none;
  border-color: #1a1a1a;
}

#newsletter button[type="submit"] {
  background: #1a1a1a;
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  min-width: auto;
}

#newsletter button[type="submit"]:hover {
  background: #333;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-group {
  flex: 1;
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
}

.form-submit {
  flex: 0 0 auto;
  min-width: 200px;
}

.hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  visibility: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

@media (max-width: 900px) {
  #newsletter.newsletter-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 80px 40px;
  }

  #por-que-elegirnos .btn-wrapper {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: 80vh;
    padding: 100px 40px 40px;
  }

  .logo-container {
    left: 40px;
  }

  .logo {
    width: 180px;
  }
  
  .hero-title {
    max-width: 100%;
    font-size: clamp(2rem, 5.5vw, 3.2rem);
  }
  
  .hero-description {
    position: static;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .services-section {
    padding: 50px;
  }
  
  .services-header {
    padding: 0;
  }
  
  .services-grid {
    flex-wrap: wrap;
  }
  
  .service-card {
    padding: 0 20px 0 0;
  }
  
  .about-section {
    padding: 150px 50px 50px;
  }

  #quienes-somos.about-section {
    padding: 80px 50px;
  }

  .sectors-section {
    padding: 80px 50px;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    padding-right: 0;
  }
  
  .about-image {
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
  }
  
  .cta-section {
    padding: 80px 50px 50px;
  }

  .cta-section .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-text {
    flex-direction: column;
  }
  
  .cta-text-right {
    padding-left: 0;
    margin-top: 20px;
  }
  
  .team-header {
    flex-direction: column;
  }
  
  .team-header-right {
    padding-left: 0;
    margin-top: 20px;
  }
  
  .sectors-grid,
  .features-grid {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding: 100px 20px 40px;
  }

  .logo-container {
    top: 24px;
    left: 20px;
  }

  .logo {
    width: 150px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    max-width: 100%;
  }
  
  .hero-description {
    position: static;
    max-width: 100%;
    font-size: 0.95rem;
    margin-top: 0.75rem;
  }
  
  .services-section,
  .about-section,
  .sectors-section,
  .cta-section,
  .team-section,
  .newsletter-section {
    padding: 50px 25px;
  }

  #quienes-somos.about-section {
    padding: 80px 25px;
  }

  .sectors-section {
    padding: 80px 25px;
  }
  
  .services-grid,
  .sectors-grid,
  .features-grid {
    flex-direction: column;
  }
  
  .service-card,
  .sector-card,
  .feature-card {
    padding: 0;
    min-height: auto;
  }
  
  #newsletter.newsletter-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 50px 25px;
  }

  #newsletter .form-inputs-row {
    grid-template-columns: 1fr;
  }

  #newsletter button[type="submit"] {
    align-self: stretch;
    width: 100%;
  }
  
  .gallery {
    flex-direction: column;
    gap: 20px;
  }
  
  .gallery-item {
    padding: 0;
  }
  
  .about-image img {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .hero-section::before {
    background-color: rgba(0, 0, 0, 0.3);
  }
  
  .btn {
    display: none;
  }
}

/* Main Footer Styles */
.main-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-body);
}

.main-footer .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.main-footer small {
  font-size: 0.9rem;
  opacity: 0.8;
}

.main-footer a {
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.main-footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

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

