/* css/styles.css */
:root {
    --primary-color: #29b2dc;
    --secondary-color: #5bc0de;
    --dark-blue: #1a6a8d;
    --light-blue: #d1f2ff;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333333;
}

body, h1, h2, h3, h4, h5, h6, p, a, input, button, label {
    font-family: 'Baloo 2', Arial, sans-serif !important;
}

body {
    margin: 0;
    padding: 0;
    color: var(--dark-gray);
    line-height: 1.6;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo-img.logo-desktop {
    display: inline-block;
    vertical-align: middle;
}

.logo-img.logo-mobile {
    display: none;
    vertical-align: middle;
}

.logo h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 28px;
}

.logo span {
    font-size: 14px;
    color: var(--dark-gray);
    margin-left: 10px;
}

/* Responsive logo and navigation */
@media (max-width: 1024px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .logo span {
        font-size: 12px;
    }
    
    nav ul li a {
        font-size: 16px;
    }
    
    .header-container {
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 22px;
    }
    
    .logo span {
        font-size: 11px;
    }
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

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

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 18px;
    letter-spacing: 0.5px;
}

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

.menu-toggle {
    display: none;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-gray);
    border-radius: 3px;
    transition: all 0.35s ease-in-out;
    position: absolute;
    left: 0;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Botón Global */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-align: center; /* Asegurar centrado del texto si el botón es display:block o width:100% */
}

/* Responsive button sizing */
@media (max-width: 1024px) {
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

.btn:hover {
    background-color: var(--dark-blue); /* Un color ligeramente más oscuro para el hover */
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px); /* Ligero efecto de elevación */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(41, 178, 220, 0.25) 0%, rgba(41, 178, 220, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s;
    opacity: 0;
}

.hero:hover .hero-glow {
    opacity: 1;
}

.hero .container {
    position: relative;
    z-index: 4;
    width: 90%;
    max-width: 900px;
}

.hero-content {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(35, 35, 35, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    z-index: 4;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #d1d1ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.hero-subtext {
    color: #e0e0ff;
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.services .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-blue);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.services .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.section-title p {
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-top: 10px;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    transition: all 0.3s ease;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 70px;
}

.service-card p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.service-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid transparent;
}

.service-btn:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
}

.about-img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.about-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-img:hover {
    transform: translateY(-5px);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    color: var(--dark-blue);
    font-size: 32px;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 36px;
    margin: 0;
}

.stat-item p {
    margin: 5px 0 0;
    color: var(--dark-gray);
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tariff-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.tariff-card h3 {
    color: var(--dark-blue);
    margin-top: 0;
    font-size: 22px;
}

.tariff-card .price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

.tariff-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tariff-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tariff-card ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--white);
    margin: 0 0 15px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-links ul li a {
    color: var(--light-blue);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Estilos para el sistema de tracking */
.contact-form-container {
max-width: 100%;
margin: 60px auto 40px auto;
background: var(--white);
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0,0,0,0.10);
padding: 40px 32px 32px 32px;
animation: fadeInUp 1s cubic-bezier(.4,0,.2,1);
box-sizing: border-box;
}

@media (min-width: 768px) {
.contact-form-container {
max-width: 500px;
}
}

.contact-form .error {
color: #dc3545;
font-size: 0.9rem;
margin-top: 5px;
margin-bottom: 10px;
}

/* Estilos iniciales para los campos */
.contact-form input,
.contact-form textarea {
    border: 1px solid #ddd;
    box-shadow: none;
}

/* Estilos para cuando el formulario ha sido enviado con errores */
.form-submitted .contact-form input:invalid,
.form-submitted .contact-form textarea:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Estilos para campos válidos */
.contact-form input:valid,
.contact-form textarea:valid {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--light-blue);
}

.tracking-container {
max-width: 500px;
margin: 0 auto;
background: var(--white);
padding: 30px;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
transition: transform 0.3s;
}

.tracking-container h3 {
margin-top: 0;
color: var(--dark-blue);
}

.tracking-container input[type="text"] {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.tracking-form {
    max-width: 480px;
    margin: 0 auto;
}

.tracking-form button.btn {
    border-radius: 10px;
    font-size: 1.1rem;
    padding: 14px 0;
}

/* Responsive design for intermediate screens (720p, 1024x768) */
@media (max-width: 1366px) and (min-width: 1025px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtext {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 2.5rem 1.5rem;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .services .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        width: 95%;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtext {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        max-width: 700px;
    }
    
    .services {
        padding: 50px 0;
    }
    
    .services .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 15px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
}

/* Responsive menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important; /* Use important to override other styles */
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out, padding 0.5s ease-out;
        padding: 0;
    }

    .nav-list.active {
        max-height: 300px; /* Adjust as needed for your content */
        padding: 1rem 0;
    }

    nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav li a {
        display: block;
        padding: 0.75rem 1rem;
    }

    .logo-img.logo-desktop {
        display: none !important;
    }

    .logo-img.logo-mobile {
        display: inline-block !important;
    }
}

@media (min-width: 768px) {
    .carousel {
        max-width: 800px;
    }
    
    .service-card {
        min-width: 50%;
        padding: 0 10px;
    }
}

@media (min-width: 992px) {
    .service-card {
        min-width: 33.333%;
    }
}

@media (min-width: 1200px) {
    .service-card {
        min-width: 25%;
    }
}

/* Responsive adjustments for services and other sections */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-content, .about-stats {
        max-width: 100%;
        text-align: center;
    }
    
    .about-stats {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .service-card {
        min-width: calc(100% - 30px);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Responsive */
@media (min-width: 1201px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }
    
    .services .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        padding: 0 20px;
    }
    
    .service-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 50px 0;
    }
    
    .services .section-title {
        font-size: 1.8rem;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
}