/* Variables de colores */
:root {
    --primary-blue: #00A8C4;
    --primary-orange: #E94F10;
    --secondary-yellow: #FDEB1E;
    --dark-blue: #007A8F;
    --light-blue: #7FD4E2;
    --white: #FFFFFF;
    --black: #333333;
    --gray: #F5F5F5;
    --dark-gray: #666666;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Botones */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(233, 79, 16, 0.3);
}

.btn-primary:hover {
    background-color: #d04610;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 79, 16, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 196, 0.3);
}

/* Header y Navegación */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.ampersand {
    color: var(--primary-orange);
    font-style: italic;
    margin: 0 2px;
}

.tagline {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: -5px;
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 0;
    margin: 0;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--black);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-blue);
    background-color: rgba(0, 168, 196, 0.1);
}

.link-text {
    margin-right: 8px;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link:hover .link-icon {
    opacity: 1;
    transform: translateY(-2px);
}

.contact-btn {
    margin-left: 30px;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}



/* Hero Section */
.hero {
    margin-top: 120px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 120px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--black);
}

.hero-title .highlight {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--secondary-yellow);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-contact {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-contact p {
    font-size: 1.2rem;
    color: #fff;
    background-color: var(--primary-orange);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(233, 79, 16, 0.3);
    font-weight: 600;
}

.hero-contact i {
    margin-right: 0.8rem;
    color: #FFFFFF;
    font-size: 1.3rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Secciones */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-orange);
    margin: 0.5rem auto;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sección de Servicios */
.services-section {
    padding: 80px 0;
    background-color: var(--gray);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 0 0 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 168, 196, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -35px auto 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 4px solid var(--white);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black);
    padding: 0 20px;
}

.service-card p {
    color: var(--dark-gray);
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--primary-orange);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Sección de Contacto */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-section .section-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.2rem;
}

.contact-section .section-subtitle {
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    min-width: 250px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black);
}

.contact-card p {
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.contact-card a {
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-orange);
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    position: relative;
    height: 450px;
    margin: 0 auto;
    max-width: 1100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 20px 20px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-yellow);
}

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

.footer-links ul li a {
    transition: all 0.3s ease;
}

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

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-image {
        justify-content: center;
        margin-top: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .contact-card {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 0;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px;
    }
    
    .contact-btn {
        margin: 15px 0 5px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 100px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 90%;
        max-width: 350px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-contact p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin: -30px auto 15px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

/* Animación para el header al hacer scroll */
.header-scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para el botón de contacto para mantener siempre su color */
.contacto-btn {
    background-color: var(--primary-orange) !important;
    color: var(--white) !important;
}

.contacto-btn:hover {
    background-color: #d04610 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 79, 16, 0.4) !important;
}

/* Animación para los links activos */
.nav-link.active {
    color: var(--primary-blue);
    background-color: rgba(0, 168, 196, 0.1);
}

/* Animación para el hover de los botones */
.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    left: 100%;
}
