/* === GLOBAL STYLES === */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #146C94;
    --secondary-color: #19a7ce;
    --text-color: #000000;
    --light-text: #f7f7f7;
    --background-light: #F6F1F1;
    --background-dark: #222;
    --grey-light: #9fa1a0;
    --grey-medium: #625c5a80;
    --border-color: #e1e1e1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.ansv {
    text-align: center; 
    padding-right: 50px;
    font-size: 15px;
}

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


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-5px); /* Ligero efecto de elevación */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.btn-green {
    background-color: var(--secondary-color);
    color: #fff;
}


.btn-green:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-wpp {
    color: #fff;
    font-size: 80px;
    padding: 10px 20px;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.btn-white {
    background-color: #fff;
    color: var(--secondary-color);;
}

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

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: #F6F1F1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.logo img {
    height: 70px;
    transition: all 0.3s ease;
}

.header.scrolled .logo img {
    height: 60px;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}


.main-nav ul li a {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
    transform: scale(1.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;    
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 700px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.slide-content .btn {
    margin-top: 20px; /* Ajusta este valor según tus necesidades */
}

.btn-green .fab.fa-whatsapp {
    font-size: 100px; /* Ajusta el tamaño del ícono */
    color: #25D366; /* Color verde de WhatsApp */
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
    padding-top: 20px;
}

.slide.active .buttons {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.3);
}

/* === CONTACT FORM SMALL === */
.contact-form-small {
    background-color: var(--background-light);
    padding: 50px 0;
}

.form-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-wrapper h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.form-wrapper p {
    margin-bottom: 20px;
    color: var(--grey-medium);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 162, 101, 0.1);
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* === ABOUT SECTION === */
.about-section {
    padding: 50px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.about-text h1 {
    color: var(--primary-color);
    font-size: 40px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    font-size: 15px;
    
}

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

.about-valores img {
    display: grid;
    justify-content: center;
    margin-left: 25%;
    width: 50%;

}

.about-valores-title {
    display: grid;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* === SERVICES SECTION === */
.services-section {
    background-color: var(--background-light);
    padding: 80px 0;
}


.services-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 36px;
    margin-bottom: 15px;
}

.section-description {
    text-align: center;
    color: var(--grey-medium);
    max-width: 700px;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item:hover .service-icon {
    transform: rotateY(180deg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding-right: 20px;
}

.service-link i {
    position: absolute;
    right: -10px;
    margin-top: 13px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translate(5px, -50%);
}

.service-item h4 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.service-item p {
    color: var(--grey-medium);
}

/* === ES SECTION === */
.especialidades-section {
    padding: 80px 0;
    background-color: #fff;
}

.specialties-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.specialties-image {
    flex: 1;
}

.specialties-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.specialties-text {
    flex: 1;
}

.specialties-text h3 {
    color: var(--secondary-color);
    font-size: 30px;
    margin-bottom: 30px;
}

.specialties-list {
    display: flex;
    margin-bottom: 30px;
}

.specialties-list ul {
    flex: 1;
}

.specialties-list ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    color: var(--grey-medium);
    
}

.specialties-list ul li:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}

/* === CONTACT SECTION === */
.contact-section {
    background-color: var(--background-light);
    padding: 80px 0;
}

.contact-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 36px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.contact-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-card .icon i {
    font-size: 20px;
    color: #fff;
    align-items: center;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: bold;
}

.contact-details p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-details a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.contact-form-large {
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-large h3 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.step-content{
    text-align: left;
    width: 140px;
}

/* === FOOTER === */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}


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

.footer-logo img {
    height: 65px;
    width: auto;
    margin-right: 20px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    max-width: 300px;
}

.vertical-divider {
    width: 1px;
    height: 80px;
    background-color: rgb(255, 255, 255);
    margin: 0 20px;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.footer-social a i {
    font-size: 16px;
}

.footer-hours {
    min-width: 250px;
    text-align: right;
    text-align: left;
}

.footer-hours h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-hours h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-hours ul li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    gap : 100px;
}

.footer-hours ul li span:first-child {
    font-weight: 500;
}

.footer-bottom {
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}


/* === SUCCESS MESSAGE ANIMATION === */
.success-message {
    background-color: rgba(39, 162, 101, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === FAQ ANIMATION === */
.faq-item {
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.faq-question {
    cursor: pointer;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(39, 162, 101, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 0 0 5px 5px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-item.active .faq-question {
    border-radius: 5px 5px 0 0;
    background-color: var(--primary-color);
    color: white;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 15px;
}

.faq-item.active .toggle-icon:before,
.faq-item.active .toggle-icon:after {
    background-color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-logo img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .vertical-divider {
        display: none;

    .footer-logo-text {
        margin-top: 15px;
    }
    
    .footer-social {
        justify-content: center;
        width: 100%;
        margin-top: 15px;
    }
    
    .footer-hours {
        text-align: center;
        margin-top: 30px;
    }
}


/* === SPECIALTY ITEM ANIMATIONS === */
.specialty-item {
    transition: all 0.3s ease;
}

.specialty-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.specialty-icon {
    transition: all 0.4s ease;
}

.specialty-item:hover .specialty-icon {
    background-color: var(--secondary-color);
    transform: rotate(360deg);
}

/* === PAGE CONTENT ANIMATION === */
.page-content {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === HOVER ANIMATIONS FOR ELEMENTS === */
.specialties-list li a {
    position: relative;
    color: var(--grey-medium);
    text-decoration: none;
    transition: all 0.3s ease;
}

.specialties-list li a:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.specialties-list li a:hover {
    color: var(--primary-color);
}

.specialties-list li a:hover:before {
    width: 100%;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    .about-content,
    .specialties-content {
        flex-direction: column;
    }

    .about-text,
    .specialties-text {
        order: 1;
    }

    .about-image,
    .specialties-image {
        order: 2;
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-hours {
        order: 3;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

    .main-nav {
        display: none;
    }

    .slide-content h1 {
        font-size: 40px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content h3 {
        font-size: 26px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
        font-size: large;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content h2 {
        font-size: 18px;
    }

    .slide-content h3 {
        font-size: 22px;
    }

    .about-text h1 {
        font-size: 32px;
    }

    .service-icon i {
        font-size: 2rem; /* Ajustar tamaño si es necesario */
        color: #007bff; /* Azul, cambiar según diseño */
    }
    
    /* Opcional: Ajustar la alineación si es necesario */
    .service-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px; /* O ajustarlo según tu diseño */
        height: 50px;
        background-color: #f8f9fa;
        border-radius: 50%;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }
    

    .specialties-list {
        flex-direction: column;
    }

    .specialties-list ul:first-child {
        margin-bottom: 20px;
    }
}

/* === HAMBURGER MENU STYLES === */
.hamburger-menu {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Mostrar el menú hamburguesa en pantallas pequeñas */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px; /* Debajo del header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav ul li {
        margin-bottom: 10px;
    }
}
