/* Variables Globales */
:root {
    /* Colores principales (ADAPTADOS A #517257) */
    --primary-color: #043034;     /* Color principal */
    --secondary-color: #d8ae5e ;   /* Tonalidad más oscura */
    --accent-color: #2d3d31;      /* Acento */
    --dark-blue: #394c40;         /* Se mantiene dentro de la gama */

    /* Colores neutrales */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-color: #333333;

    /* Tipografía */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Espaciado */
    --section-padding: 80px 0;
    --container-width: 1200px;

    /* Sombras */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.1);

    /* Bordes */
    --border-radius: 10px;
    --border-radius-sm: 5px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}



/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #043034;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d8ae5e;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ============================= */
/*        HERO SECTION           */
/* ============================= */

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-top: 70px;
    overflow: hidden;
    background: url(images/hero2_dkt.webp) no-repeat right center, #043034;
    background-size: cover;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

/* Texto */
.hero-content {
    max-width: 600px;
    color: #043034;
    z-index: 2;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* FEATURES */
.features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    font-size: 1.5rem;
    color: #d8ae5e;
}

.feature span {
    font-size: 1rem;
    font-weight: 500;
}

/* ============================= */
/*   INPUT DE SUSCRIPCIÓN MODERNO */
/* ============================= */

.subscribe-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
}

.subscribe-box input {
    width: 100%;
    padding: 16px 140px 16px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.subscribe-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #d8ae5e;
    border: none;
    padding: 0 25px;
    color: var(--white);
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
}

.subscribe-box button:hover {
    background: #043034;
}

/* ============================= */
/*           ABOUT SECTION       */
/* ============================= */

.about-section {
    background-color: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.about-feature i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.pmc {
    color: #043034;
    font-weight: bold ;
}

/* ============================= */
/*         SERVICES SECTION      */
/* ============================= */

.services-section {
    background-color: var(--light-gray);
}

.text-services {
    text-align: center;
    color: #043034;
    font-weight: 475;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* CARD */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background-size: cover;
    background-position: center;

    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100%;
    
}

/* Overlay */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(4, 30, 34, 0.55),
        rgba(4, 30, 34, 0.55)
    );
    z-index: 1;
}

/* Asegura que el contenido esté sobre el overlay */
.service-card > * {
    position: relative;
    z-index: 2;
}

/* ICONO */
.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

/* TITULO */
.service-card h3 {
    min-height: 56px; /* fuerza misma altura */
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* PARRAFO */
.service-card p {
    flex-grow: 1;          /* ocupa el espacio disponible */
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--white);
}

/* BOTON */
.services-button {
    margin-top: auto;     /* CLAVE: empuja el botón al fondo */
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

/* Servicios individuales con diferentes fondos */
.service-card:nth-child(1) {
    background: linear-gradient(rgba(04, 30, 34, 0.45)),
                url('images/confiabilidad.webp') center/cover;
}

.service-card:nth-child(2) {
    background: linear-gradient(rgba(04, 30, 34, 0.45)), 
                url('images/juridica.webp') center/cover;
}

.service-card:nth-child(3) {
    background: linear-gradient(rgba(04, 30, 34, 0.45)), 
                url('images/seleccion.webp') center/cover;
}

.service-card:hover {
    transform: translateY(-10px);
}

.services-button:hover {
    background: #043034;
    transform: translateY(-10px);
}

/* ============================= */
/*        BENEFITS SECTION       */
/* ============================= */

.benefits-section {
    background-color: var(--white);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background: var(--light-gray);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.benefit-card:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.benefit-card:hover i,
.benefit-card:hover h3,
.benefit-card:hover p {
    color: var(--white);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.benefit-card h3 {
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.benefit-card p {
    transition: color 0.3s ease;
}

/* ============================= */
/*       TESTIMONIALS SECTION    */
/* ============================= */

.testimonials-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.testimonials-section h2 {
    color: #d8ae5e;
}

.testimonials-container {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
}

.testimonial-slider {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    background: var(--white);
    color: var(--text-color);
    padding: 40px;
    border-radius: var(--border-radius);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}

.testimonial-content:before {
    content: "";
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary-color);
}

/* ============================= */
/*        FAQ SECTION            */
/* ============================= */

.faq-section {
  background:
    linear-gradient(
      135deg,
      rgba(252, 253, 253, 0.95),
      rgba(249, 250, 250, 0.95)
    ),
    url('/images/faq.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

/* CONTENEDOR */
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

/* ITEM */
.faq-item {
  background: rgba(04, 30, 34, 1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s ease;
  border: 1px solid rgba(04, 30, 34, 0.5);
}

/* HOVER – CAMBIO DE COLOR */
.faq-item:hover {
  background: rgba(216, 174, 94, 0.18);
  border-color: rgba(216, 174, 94, 0.45);
  transform: translateY(-2px);
}

/* PREGUNTA */
.faq-question {
  width: 100%;
  padding: 1.4rem 1.6rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
    color: #043034;
}

/* ICONO */
.faq-question span {
  font-size: 1.4rem;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

/* RESPUESTA */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.6rem;
  color: #043034;
  line-height: 1.7;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* ACTIVO */
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.6rem 1.6rem;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

/* LINKS / BOTONES */
.faq-answer a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.4rem;
  background: var(--secondary-color);
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.faq-answer a:hover {
  background: var(--primary-color);
}


/* ============================= */
/*         CONTACT SECTION       */
/* ============================= */

.contact-section {
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* ============================= */
/*         FOOTER SECTION        */
/* ============================= */

.footer-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #043034;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    color: #043034;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================= */
/*      WHATSAPP BUTTON          */
/* ============================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-heavy);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128c7e;
}

/* ============================= */
/*      RESPONSIVE DESIGN        */
/* ============================= */

@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-container,
    .contact-container {
        flex-direction: column;
    }
    
    .about-image,
    .contact-image {
        margin-bottom: 30px;
        width: 100%;
    }
    
    .features {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        padding: 15px 0;
        display: block;
    }


    .hero-section {
        background: 
            url(images/hero_pmc_movile.svg) no-repeat center top,
            #043034;
        background-size: contain;
        min-height: 70vh;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .service-card {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .subscribe-box {
        max-width: 100%;
    }
    
    .subscribe-box input {
        padding-right: 120px;
    }
    
    .subscribe-box button {
        padding: 0 15px;
        font-size: 0.85rem;
    }
    
    .testimonial-slide {
        padding: 25px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
}