/* ======================================
   VARIABLES GLOBALES Y RESET
====================================== */
:root {
    --color-bg: #F4F1EF;
    --color-primary: #FF6B6B;
    --color-secondary: #3B3B98;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

/* ======================================
   BOTONES
====================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #FF5252;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #2F2F88;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-full {
    width: 100%;
}

/* ======================================
   HEADER Y NAVEGACIÓN
====================================== */
.header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.logo:hover .logo__text {
    color: var(--color-primary);
}

.nav__list {
    display: flex;
    gap: 20px;
}

.nav__link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-toggle-form {
    margin: 0;
    padding: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    transition: var(--transition);
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

.mobile-menu {
    display: none;
    background-color: var(--color-white);
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav__link {
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.mobile-nav__link--cta {
    color: var(--color-primary);
    font-weight: 600;
}

.no-scroll {
    overflow: hidden;
}

/* ======================================
   HERO SECTION
====================================== */
.hero {
    background: linear-gradient(rgba(59, 59, 152, 0.8), rgba(59, 59, 152, 0.8)), url('../img/1GkPD4.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-white);
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeIn 1s ease 0.6s;
    animation-fill-mode: both;
}

/* ======================================
   ABOUT SECTION
====================================== */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about__text {
    font-size: 1.1rem;
}

.about__image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about__image img:hover {
    transform: scale(1.02);
}

/* ======================================
   SERVICES SECTION
====================================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card p {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
    color: var(--color-secondary);
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    min-height: 75px;
}

.service-card .btn {
    margin: 0 20px 20px;
}

/* ======================================
   BENEFITS SECTION
====================================== */
.benefits {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.benefits h2::after {
    background-color: var(--color-white);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.benefit-icon i {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Iconos CSS en lugar de fuente de iconos */
.icon-experience::before {
    content: '★';
}

.icon-team::before {
    content: '👥';
}

.icon-customization::before {
    content: '🔧';
}

.icon-confidentiality::before {
    content: '🔒';
}

.icon-phone::before {
    content: '📞';
}

.icon-email::before {
    content: '✉️';
}

.icon-address::before {
    content: '📍';
}

.icon-map::before {
    content: '🗺️';
}

/* ======================================
   TESTIMONIALS SECTION
====================================== */
.testimonials__slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials__slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial__content {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.testimonial__content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -15px;
    font-size: 60px;
    color: var(--color-primary);
    font-family: serif;
    opacity: 0.6;
}

.testimonial__author h4 {
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.testimonial__author p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ======================================
   CONTACT SECTION
====================================== */
.contact {
    background-color: var(--color-bg);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact__info {
    color: var(--color-text);
}

.contact__details {
    margin-top: 30px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact__item i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.contact__form {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.form-group.checkbox a {
    text-decoration: underline;
}

/* ======================================
   FAQ SECTION
====================================== */
.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.faq__question {
    width: 100%;
    text-align: left;
    background-color: var(--color-white);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.faq__question h3 {
    margin: 0;
    font-size: 1.1rem;
    flex-grow: 1;
}

.faq__icon {
    position: relative;
    width: 15px;
    height: 15px;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.faq__icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq__icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq__question.active .faq__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq__question.active {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.faq__question.active .faq__icon::before,
.faq__question.active .faq__icon::after {
    background-color: var(--color-white);
}

.faq__answer {
    background-color: var(--color-white);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__answer.active {
    padding: 20px;
    max-height: 300px;
}

/* ======================================
   FOOTER
====================================== */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer__logo .logo__text {
    color: var(--color-white);
}

.footer__description {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contact-item i {
    color: var(--color-primary);
}

.footer__contact-item a {
    color: var(--color-white);
    opacity: 0.8;
}

.footer__contact-item a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ======================================
   COOKIE POPUP
====================================== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-popup p {
    margin-bottom: 0;
}

.cookie-popup a {
    text-decoration: underline;
}

/* ======================================
   THANKS PAGE
====================================== */
.thanks {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 0;
}

.thanks__content {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 50px 30px;
    box-shadow: var(--shadow);
}

.thanks__icon {
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

.thanks__title {
    color: var(--color-primary);
    margin-bottom: 20px;
    animation: fadeInDown 0.7s ease;
}

.thanks__message {
    font-size: 1.2rem;
    margin-bottom: 20px;
    animation: fadeIn 0.9s ease;
}

.thanks__submessage {
    color: var(--color-text-light);
    margin-bottom: 30px;
    animation: fadeIn 1.1s ease;
}

.thanks__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 1.3s ease;
}

/* ======================================
   LEGAL PAGES
====================================== */
.legal {
    padding: 60px 0;
}

.legal__content {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.legal h1 {
    color: var(--color-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.legal h2 {
    color: var(--color-primary);
    text-align: left;
    font-size: 1.5rem;
}

.legal h2::after {
    left: 0;
    transform: none;
    width: 60px;
}

.legal p,
.legal ul {
    margin-bottom: 20px;
}

.legal ul {
    padding-left: 20px;
    list-style-type: disc;
}

.legal li {
    margin-bottom: 10px;
}

/* ======================================
   ANIMACIONES
====================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ======================================
   MEDIA QUERIES
====================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .about__content {
        grid-template-columns: 1fr;
    }
    
    .about__image {
        order: -1;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .testimonial {
        max-width: 85%;
    }
    
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .testimonial {
        max-width: 95%;
    }
    
    .thanks__actions {
        flex-direction: column;
    }
}

@media (max-width: 375px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .btn {
        padding: 10px 20px;
    }
}

/* ======================================
   MENSAJES DE ALERTA
====================================== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
 