/* 
    CDR - Centro de Diagnóstico y Rehabilitación Veterinaria
    Custom CSS styles
*/

:root {
    --primary-color: #00C8D8;    /* Bright turquoise from logo */
    --secondary-color: #1A5B65;  /* Dark teal from logo text */
    --dark-color: #333333;       /* Dark gray for text */
    --light-color: #f8f9fa;      /* Light background color */
    --accent-color: #0A8E99;     /* Medium teal for accents */
    --danger-color: #dc3545;     /* Red for alerts */
    --success-color: #28a745;    /* Green for success messages */
    --warning-color: #ffc107;    /* Yellow for warnings */
    --info-color: #17a2b8;       /* Blue for info */
    --border-color: #dee2e6;     /* Light gray for borders */
    --gradient-start: #0C7B84;   /* Gradient start color */
    --gradient-end: #00C8D8;     /* Gradient end color */
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 0;
    z-index: 1000;
    display: none;
}

.cookie-consent p {
    margin-bottom: 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 0;
}

.top-bar .contact-info span {
    margin-right: 20px;
    font-size: 14px;
}

.top-bar .contact-info i {
    margin-right: 5px;
}

.top-bar .social-links .social-link {
    color: #fff;
    margin-left: 15px;
    font-size: 14px;
}

.top-bar .social-links .social-link:hover {
    color: var(--primary-color);
}

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 5px 0;
}

.logo img {
    max-height: 150px;
}

.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    width: 100%;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

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

.main-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary-color);
}

/* Mejora de alineación del menú */
.nav-list.text-end {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.main-header .col-md-9 {
    display: flex;
    justify-content: flex-end;
}

/* Asegurando que los botones de menú estén alineados a la derecha en pantallas grandes */
@media (min-width: 993px) {
    .main-nav .nav-item {
        display: inline-block;
        text-align: right;
    }
    
    .main-nav {
        justify-content: flex-end;
    }
}

/* Estilos para los botones de portal en el menú principal */
.nav-list .portal-btn {
    margin-left: 10px;
}

.nav-list .portal-btn .btn {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 4px;
}

.nav-list .portal-btn .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Estilos para la autorización MINSAL */
.minsal-authorization {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    z-index: 1;
    background: transparent;
    padding: 5px 10px;
}

.minsal-authorization img {
    max-height: 70px;
    height: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

.minsal-authorization p {
    font-size: 11px;
    line-height: 1.2;
    color: #666;
    margin: 0;
    max-width: 200px;
    flex-grow: 1;
}

/* Responsivo para la autorización MINSAL */
@media (max-width: 768px) {
    .minsal-authorization {
        display: none; /* Ocultar en móvil para ahorrar espacio */
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .minsal-authorization {
        left: -10px;
    }
    
    .minsal-authorization p {
        font-size: 10px;
        max-width: 150px;
    }
    
    .minsal-authorization img {
        max-height: 55px;
        margin-right: 8px;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .minsal-authorization {
        left: -5px;
    }
    
    .minsal-authorization p {
        font-size: 10px;
        max-width: 180px;
    }
    
    .minsal-authorization img {
        max-height: 65px;
    }
}

/* Asegurar que el nav principal mantenga su posición original */
.main-nav {
    width: 100%;
    position: relative;
    z-index: 2;
}

.nav-list .portal-btn .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-list .portal-btn .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-list .portal-btn .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .close-menu {
    text-align: right;
    padding: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 15px;
    color: #fff;
    font-weight: 500;
}

/* Estilos para los botones en el menú móvil */
.mobile-nav-list .portal-btn-mobile {
    padding: 8px 15px;
}

.mobile-nav-list .portal-btn-mobile .btn {
    padding: 8px 12px;
    font-weight: 500;
    border-radius: 4px;
    display: block;
    text-align: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
}

/* Service Cards */
.service-cards {
    padding: 80px 0;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 20px;
}

.service-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card-text {
    margin-bottom: 20px;
    color: #666;
}

/* Call to Action */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #fff;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-text {
    color: #666;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 30px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-author-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    color: rgba(0, 200, 216, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-info-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.contact-info-text h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: #666;
    margin-bottom: 0;
}

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

.contact-form h3 {
    margin-bottom: 30px;
}

.contact-form .form-control {
    height: 50px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact-form textarea.form-control {
    height: 150px;
}

.contact-form .btn {
    padding: 12px 30px;
    border-radius: 5px;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.map-container .alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 80%;
    text-align: center;
    font-size: 1.1rem;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 80px 0 0;
}

.footer-logo img {
    max-height: 150px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-social {
    margin-top: 20px;
}

.footer-social .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.copyright {
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-legal {
    text-align: right;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Oculto por defecto en todos los dispositivos */
    cursor: pointer;
    color: var(--dark-color);
    font-size: 24px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

/* Reforzar el estilo de navegación activa */
.main-nav .nav-link.active {
    font-weight: 600;
}

.mobile-nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block; /* Solo visible en móviles */
    }
    
    .main-nav {
        display: none;
    }
}

/* Mobile menu refinements */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .close-menu {
    text-align: right;
    padding: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 15px;
    color: #fff;
    font-weight: 500;
}

/* Estilos para los botones en el menú móvil */
.mobile-nav-list .portal-btn-mobile {
    padding: 8px 15px;
}

.mobile-nav-list .portal-btn-mobile .btn {
    padding: 8px 12px;
    font-weight: 500;
    border-radius: 4px;
    display: block;
    text-align: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
}

/* Service Cards */
.service-cards {
    padding: 80px 0;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 20px;
}

.service-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card-text {
    margin-bottom: 20px;
    color: #666;
}

/* Call to Action */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #fff;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-text {
    color: #666;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 30px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-author-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    color: rgba(0, 200, 216, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-info-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.contact-info-text h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: #666;
    margin-bottom: 0;
}

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

.contact-form h3 {
    margin-bottom: 30px;
}

.contact-form .form-control {
    height: 50px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact-form textarea.form-control {
    height: 150px;
}

.contact-form .btn {
    padding: 12px 30px;
    border-radius: 5px;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.map-container .alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 80%;
    text-align: center;
    font-size: 1.1rem;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 80px 0 0;
}

.footer-logo img {
    max-height: 150px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-social {
    margin-top: 20px;
}

.footer-social .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.copyright {
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-legal {
    text-align: right;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Oculto por defecto en todos los dispositivos */
    cursor: pointer;
    color: var(--dark-color);
    font-size: 24px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

/* Reforzar el estilo de navegación activa */
.main-nav .nav-link.active {
    font-weight: 600;
}

.mobile-nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block; /* Solo visible en móviles */
    }
    
    .main-nav {
        display: none;
    }
}

/* Mobile menu refinements */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .close-menu {
    text-align: right;
    padding: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 15px;
    color: #fff;
    font-weight: 500;
}

/* Estilos para los botones en el menú móvil */
.mobile-nav-list .portal-btn-mobile {
    padding: 8px 15px;
}

.mobile-nav-list .portal-btn-mobile .btn {
    padding: 8px 12px;
    font-weight: 500;
    border-radius: 4px;
    display: block;
    text-align: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
}

/* Service Cards */
.service-cards {
    padding: 80px 0;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 20px;
}

.service-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card-text {
    margin-bottom: 20px;
    color: #666;
}

/* Call to Action */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #fff;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-text {
    color: #666;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 30px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-author-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    color: rgba(0, 200, 216, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-info-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.contact-info-text h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: #666;
    margin-bottom: 0;
}

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

.contact-form h3 {
    margin-bottom: 30px;
}

.contact-form .form-control {
    height: 50px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact-form textarea.form-control {
    height: 150px;
}

.contact-form .btn {
    padding: 12px 30px;
    border-radius: 5px;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.map-container .alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 80%;
    text-align: center;
    font-size: 1.1rem;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 80px 0 0;
}

.footer-logo img {
    max-height: 150px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-social {
    margin-top: 20px;
}

.footer-social .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.copyright {
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-legal {
    text-align: right;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .service-card-img {
        height: 180px;
    }
    
    .cta-title {
        font-size: 30px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-height: 100px;
    }
    
    .footer-logo img {
        max-height: 100px;
    }
}

@media (max-width: 767px) {
    .top-bar {
        padding: 5px 0;
    }
    
    .top-bar .contact-info,
    .top-bar .social-links {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-text {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .footer-legal {
        text-align: center;
        margin-top: 10px;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 992px) {
    .nav-list .portal-btn {
        display: none;
    }
    
    .header-right {
        position: relative;
    }
    
    .logo {
        padding: 10px 0;
    }
}
