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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

:root {
  --primary-blue: #1a2332;
  --secondary-blue: #2d3748;
  --accent-orange: #ff6b35;
  --light-orange: #ff8c5a;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text-dark: #333333;
  --text-light: #666666;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--primary-blue);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* Logo text styles */
.logo-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
  margin-left: 12px;
  justify-content: center;
}

.logo-pm {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 1px;
}

.logo-insurance {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 2.5px;
  line-height: 1.2;
  margin-top: 2px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav li {
  min-width: fit-content;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

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

/* Language Selector */
.language-selector {
  position: relative;
  margin-left: 2rem;
}

.language-btn {
  background-color: var(--white);
  color: var(--text-dark);
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
}

.language-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.world-icon {
  font-size: 1.1rem;
}

.language-code {
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/04.jpeg') center/cover;
  background-position: center 10%;
  opacity: 0.45;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 35, 50, 0.7);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 1000px;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}

.hero-logo {
  width: 364px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    white-space: normal;
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--accent-orange);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  min-width: 280px;
  text-align: center;
  box-sizing: border-box;
}

.cta-button:hover {
  background-color: var(--light-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #000;
  font-weight: 700;
}

.services-intro {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Services Section - New Design with Images */
.services-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card-new {
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-image-circle {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 5px solid var(--accent-orange);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-new h3 {
  color: #000;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.service-card-new p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Advice Section */
.advice {
  padding: 80px 0;
  background-color: var(--white);
}

.advice-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.advice-image {
  flex: 0 0 40%;
  max-width: 40%;
}

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

.advice-text {
  flex: 1;
}

.advice-intro {
  text-align: left;
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.advice-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.advice-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.5rem;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.advice-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: bold;
  font-size: 1.2rem;
}

.advice-list li:last-child {
  border-bottom: none;
}

.advice .cta-outline {
  display: block;
  width: fit-content;
  margin: 0;
  background: transparent;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
}

.advice .cta-outline:hover {
  background-color: var(--accent-orange);
  color: var(--white);
}

/* Responsive design for advice section */
@media (max-width: 768px) {
  .advice-content {
    flex-direction: column;
    gap: 2rem;
  }

  .advice-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .advice-intro {
    text-align: center;
  }

  .advice .cta-outline {
    margin: 0 auto;
  }
}

/* Companies Preview Section */
.companies-preview {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.companies-preview .container {
  max-width: 2000px;
}

.companies-intro {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

/* Companies Carousel */
.companies-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 60px;
}

.companies-carousel {
  overflow: hidden;
  width: 100%;
  border-radius: 15px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  flex: 0 0 calc(33.333% - 14px);
  flex-shrink: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
}

.carousel-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.company-carousel-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background-color: var(--light-gray);
}

.carousel-item img {
  max-width: 100%;
  height: 100%;
}

.carousel-btn {
  position: absolute;
  background: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  color: var(--primary-blue);
}

.carousel-btn:hover:not(:disabled) {
  background: var(--accent-orange);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent-orange);
  width: 32px;
  border-radius: 6px;
}

.company-logos {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.company-logos img {
  width: 100%;
  height: auto;
}

.companies-preview .cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(50% - 10px);
  }

  .companies-carousel-wrapper {
    padding: 0 50px;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 100%;
  }

  .companies-carousel-wrapper {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Companies full page */
.companies-page {
  padding: 5rem 0 6rem;
  min-height: 60vh;
  background-color: var(--white);
}

.companies-page .container {
  max-width: 1400px;
}

.companies-page .section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.companies-page .companies-intro {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 4rem;
}

.company-block {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 3rem;
  margin-bottom: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(26, 35, 50, 0.06);
  transition: all 0.3s ease;
}

.company-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-orange);
}

.company-block-title {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 4px solid var(--accent-orange);
  font-weight: 700;
  position: relative;
}

.company-block-title::before {
  content: '●';
  color: var(--accent-orange);
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

.company-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem 3rem;
  margin: 0;
  padding: 0;
}

.company-list li {
  padding: 0.85rem 0;
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 1.75rem;
}

.company-list li::before {
  content: '▸';
  color: var(--accent-orange);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.company-list li:hover {
  color: var(--primary-blue);
  padding-left: 2rem;
}

.company-list li:hover::before {
  transform: translateX(5px);
}

.companies-footer-note {
  text-align: center;
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  border-radius: 15px;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 8px 25px rgba(26, 35, 50, 0.15);
}

.companies-footer-note a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.companies-footer-note a:hover {
  color: var(--light-orange);
  border-bottom-color: var(--light-orange);
}

/* Responsive design for companies page */
@media (max-width: 768px) {
  .company-block {
    padding: 2rem;
  }

  .company-block-title {
    font-size: 1.6rem;
  }

  .company-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .companies-page .section-title {
    font-size: 2.2rem;
  }
}

.about-page {
  min-height: 60vh;
}

.about-page .container {
  max-width: 2000px;
}

.team-row-contact {
  margin-top: 2.5rem;
}

.about-cta-wrap {
  text-align: center;
  padding: 0;
}

.about-cta-wrap .cta-button {
  display: inline-block;
}

.nav-active {
  color: var(--accent-orange) !important;
}

a.logo {
  text-decoration: none;
  color: inherit;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
}

.about-intro {
  font-size: 1.3rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: justify;
}

.about-mission-title,
.about-vision-title {
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 1.4rem;
}

/* Services header: tabla 2 columnas (imagen 07 | Nuestros Servicios) */
.services-header-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.services-img-col {
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.services-img-full {
  width: 100%;
  max-height: 500px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.services-content-col {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.services-content-col .section-title {
  text-align: left;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.services-content-col .services-intro {
  text-align: left;
  margin-bottom: 1.5rem;
}

.services-content-col .services-grid {
  margin-top: 0;
}

.services-content-col .service-card {
  padding: 1.2rem;
}

.services-content-col .service-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.services-content-col .service-card p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.services-content-col .service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Legacy services-visual */
.services-visual {
  text-align: center;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.services-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* Team: fila CEO + fila "En el equipo" (imágenes 08, 06, 07) */
.team-rows {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.team-row {
  width: 100%;
}

.team-row-equipo {
  margin-top: 0.5rem;
}

.team-equipo-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1.25rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fila: 07 (reducida) + Nuestros servicios */
.team-equipo-fila-servicios {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.team-equipo-img-col {
  max-width: 280px;
}

.team-equipo-img-small {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.team-equipo-servicios-col {
  padding: 1rem 0;
}

.team-servicios-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.team-servicios-text {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  text-align: justify;
}

.team-equipo-servicios-col .cta-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 10px 24px;
  font-size: 1rem;
}

.team-equipo-servicios-col .cta-outline:hover {
  background-color: var(--accent-orange);
  color: var(--white);
}

/* Legacy: fila 06 y 07 */
.team-equipo-fila-dos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.team-equipo-fila-dos .team-equipo-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* Fila asistente (08): 2 columnas */
.team-equipo-fila-asistente {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.team-asistente-info {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--accent-orange);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.team-asistente-info h4 {
  color: var(--primary-blue);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.team-asistente-role {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.team-asistente-contact {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.team-asistente-contact a {
  color: var(--accent-orange);
  text-decoration: none;
}

.team-asistente-contact a:hover {
  text-decoration: underline;
}

.team-asistente-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.team-asistente-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Legacy team-cards (p. ej. layout anterior) */
.team-cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* — CEO: tarjeta principal, más espacio y peso visual — */
.founder-info {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
  border-radius: 12px;
  border-left: 5px solid var(--accent-orange);
  align-items: stretch;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  min-height: 340px;
}

.founder-photo-wrap {
  flex: 0 0 42%;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.founder-photo {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.founder-text {
  flex: 1;
  text-align: left;
}

.founder-info h3 {
  color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.founder-badge {
  display: inline-block;
  background-color: var(--accent-orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.founder-title {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.founder-text p:last-of-type {
  margin-bottom: 0;
  color: var(--text-light);
  line-height: 1.75;
  font-size: 1.05rem;
}

.founder-text p[data-i18n='about.founder.desc'],
.founder-text p[data-i18n='about.founder.recognition'] {
  text-align: justify;
}

/* — Assistant: tarjeta secundaria, compacta — */
.team-card {
  padding: 1.25rem;
  background-color: var(--white);
  border-radius: 10px;
  border-left: 3px solid rgba(255, 107, 53, 0.4);
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.team-card-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.team-card-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 0.75rem;
  display: block;
  object-fit: cover;
}

.team-card-content h3 {
  color: var(--secondary-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.team-card-role {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-card-contact {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.team-card-contact a {
  color: var(--accent-orange);
  text-decoration: none;
}

.team-card-contact a:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-image {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.contact-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
  align-items: flex-start;
}

.contact-icon {
  font-size: 3.5rem;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-details h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.contact-details a {
  color: var(--accent-orange);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--light-orange);
  text-decoration: underline;
}

.contact-form-container {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.submit-button {
  width: 100%;
  padding: 15px;
  background-color: var(--accent-orange);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: var(--light-orange);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.form-status.success {
  display: block;
  opacity: 1;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  display: block;
  opacity: 1;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Footer logo styles */
.footer-logo .logo-pm {
  font-size: 1.6rem;
  line-height: 0.9;
}

.footer-logo .logo-insurance {
  font-size: 0.6rem;
  letter-spacing: 2px;
  margin-top: 2px;
}

.footer-logo .logo-img {
  height: 50px;
  width: auto;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger-menu span {
  width: 28px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-header-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }

  .container {
    padding: 0 15px;
  }

  /* Header Mobile */
  .header {
    padding: 0.75rem 0;
  }

  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .logo-img {
    height: 50px;
  }

  .hamburger-menu {
    display: flex;
    order: 3;
  }

  .language-selector {
    margin-left: auto;
    margin-right: 1rem;
    order: 2;
  }

  .language-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-blue);
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .nav.active {
    left: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  .nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }

  /* Overlay for mobile menu */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero Mobile */
  .hero {
    min-height: 500px;
    height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero-logo {
    width: 280px;
    max-width: 90%;
    margin-bottom: 15px;
  }

  .hero h1 {
    font-size: 2rem;
    white-space: normal;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
    min-width: 240px;
    width: auto;
    max-width: 100%;
  }

  /* Services Mobile */
  .services,
  .advice,
  .contact {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

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

  .services-grid-new {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card-new {
    padding: 1.5rem 1rem;
  }

  .service-image-circle {
    width: 120px;
    height: 120px;
    border-width: 4px;
    margin-bottom: 1rem;
  }

  .service-card-new h3 {
    font-size: 1.2rem;
  }

  .service-card-new p {
    font-size: 0.9rem;
  }

  /* Contact Mobile */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .contact-items-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .contact-icon {
    font-size: 3rem;
    min-width: 60px;
  }

  .contact-details h3 {
    font-size: 1.2rem;
  }

  .contact-details a {
    font-size: 1rem;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-logo {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.5rem;
  }

  .footer-logo .logo-img {
    height: 55px;
    margin: 0 auto;
    display: block;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-links li {
    text-align: center;
  }

  .footer-links a {
    display: block;
    padding: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
  }

  .footer-links a:hover {
    color: var(--accent-orange);
    transform: scale(1.05);
  }

  .footer-contact {
    padding: 0 1rem;
  }

  .footer-contact p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
  }

  .footer-contact a {
    color: var(--accent-orange);
    font-weight: 500;
    word-break: break-all;
  }

  .footer-contact svg {
    width: 24px !important;
    height: 24px !important;
    vertical-align: middle;
    margin-right: 8px;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
  }

  /* Companies Mobile */
  .company-list {
    grid-template-columns: 1fr;
  }

  .companies-categories {
    grid-template-columns: 1fr;
  }

  .companies-intro {
    white-space: normal;
    font-size: 1rem;
    padding: 0 10px;
  }

  /* Team Mobile */
  .team-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-equipo-fila-servicios {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-equipo-img-col {
    max-width: 100%;
    margin: 0 auto;
  }

  .team-equipo-img-small {
    max-width: 280px;
    display: block;
    margin: 0 auto;
  }

  .team-equipo-servicios-col {
    text-align: center;
  }

  .team-equipo-servicios-col .cta-outline {
    margin: 0 auto;
  }

  /* Reorganizar sección del equipo en móvil */
  .team-row-equipo {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  .team-equipo-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-blue);
  }

  .team-equipo-img-small {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 15px;
  }

  /* Botón Contact Us integrado con la foto en móvil */
  .team-row-contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
    padding: 0 1.5rem 2rem;
    border-radius: 0 0 15px 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 0;
  }

  .team-row-contact .about-cta-wrap {
    text-align: center;
    margin: 0;
    padding: 1.5rem 0 0;
    background: transparent;
    border: none;
    border-top: 2px solid rgba(255, 107, 53, 0.15);
  }

  .team-row-contact .about-cta-wrap .cta-button {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block;
    padding: 16px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  }

  .team-row-contact .about-cta-wrap .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  }

  .team-equipo-fila-dos {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-equipo-fila-dos .team-equipo-img {
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }

  .team-equipo-fila-asistente {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-asistente-img-wrap {
    order: -1;
  }

  .founder-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    min-height: 0;
  }

  .founder-info .founder-text {
    text-align: center;
  }

  .founder-photo-wrap {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .founder-photo {
    min-height: 260px;
    width: 100%;
  }

  .founder-info h3 {
    font-size: 1.5rem;
  }

  .founder-title {
    font-size: 1.1rem;
  }

  .team-card {
    padding: 1rem;
  }

  .team-card-img {
    max-width: 140px;
  }

  .services-header-table {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .services-img-full {
    aspect-ratio: auto;
    max-height: none;
  }

  .services-content-col .section-title,
  .services-content-col .services-intro {
    text-align: center;
  }

  .services-visual {
    margin-bottom: 1.5rem;
  }

  /* Better text wrapping */
  .advice-intro {
    font-size: 1.1rem;
  }

  .advice-list li {
    font-size: 1rem;
    padding-left: 2rem;
  }
}

/* Desktop - Mantener diseño original */
@media (min-width: 769px) {
  .team-row-contact {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    margin-top: 2.5rem;
    margin-bottom: 0;
  }

  .team-row-contact .about-cta-wrap {
    border: none;
    padding: 0;
    background: transparent;
  }

  .team-row-contact .about-cta-wrap .cta-button {
    width: auto;
    max-width: none;
    display: inline-block;
  }
}

/* Tablet Portrait - Mejoras intermedias */
@media (min-width: 481px) and (max-width: 768px) {
  .footer-links ul {
    grid-template-columns: repeat(3, 1fr);
    max-width: 500px;
    gap: 1rem;
  }

  .footer-links a {
    font-size: 1.05rem;
  }

  .footer-contact p {
    font-size: 1.05rem;
  }

  .footer-logo .logo-img {
    height: 60px;
  }

  /* About page - tablet */
  .team-row-contact .about-cta-wrap .cta-button {
    max-width: 320px;
    margin: 0 auto;
    font-size: 1.05rem;
    padding: 15px 30px;
  }

  .team-row-equipo {
    padding: 2rem 2rem;
  }

  .team-row-contact {
    padding: 0 2rem 2rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-logo {
    width: 240px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-button {
    min-width: 200px;
    padding: 12px 25px;
  }

  .service-image-circle {
    width: 100px;
    height: 100px;
  }

  .service-card-new h3 {
    font-size: 1.1rem;
  }

  .contact-form-container {
    padding: 1.5rem 1rem;
  }

  /* Footer extra small */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-logo .logo-img {
    height: 50px;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .footer-links ul {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-width: 280px;
  }

  .footer-links a {
    font-size: 0.95rem;
    padding: 0.4rem;
  }

  .footer-contact {
    padding: 0 0.5rem;
  }

  .footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }

  .footer-contact a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 1.25rem;
  }

  /* About page - Contact button extra small */
  .team-row-equipo {
    padding: 1.5rem 1rem;
  }

  .team-row-contact {
    padding: 0 1rem 1.5rem;
  }

  .team-row-contact .about-cta-wrap {
    padding: 1.25rem 0 0;
  }

  .team-row-contact .about-cta-wrap .cta-button {
    padding: 14px 25px;
    font-size: 1rem;
  }

  .team-equipo-title {
    font-size: 1.3rem;
  }
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent-orange);
}
