/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffd700;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Optimización de rendimiento - Aceleración por hardware */
.service-card,
.contact-item,
.btn-primary,
.btn-secondary,
.popup-overlay,
.taxi-animation-overlay,
.calculator-result,
.result-content,
.nav-menu a::after {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimizar animaciones reduciendo el uso de will-change después de la animación */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.scale-in {
    will-change: transform, opacity;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    height: 600px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232c3e50" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay .container {
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: bold;
    opacity: 0;
}

.hero h1.animated {
    animation: fadeInDown 1s forwards;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white) !important;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    opacity: 0;
}

.hero p.animated {
    animation: fadeInUp 1s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
}

.hero-buttons.animated {
    animation: fadeInUp 1.2s forwards;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #ffed4e;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Secciones */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Servicios */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #ffed4e;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Calculadora de Tarifas */
.rates {
    background: var(--white);
}

.calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.calculator-form select,
.calculator-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.calculator-form select:focus,
.calculator-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calculator-result {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    min-height: 200px;
    transition: all 0.4s ease;
}

.result-content {
    text-align: center;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.result-content .price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.result-content p {
    color: #666;
}

.rates-info {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.rates-info h3 {
    margin-bottom: 1rem;
}

.rates-info ul {
    list-style: none;
}

.rates-info li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rates-info i {
    color: var(--primary-color);
}

/* Formulario de Reservas */
.booking {
    background: var(--light-bg);
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.booking-form button {
    width: 100%;
}

.mensaje-respuesta {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.mensaje-respuesta.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mensaje-respuesta.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Condiciones del Servicio */
.conditions {
    background: var(--light-bg);
    padding: 80px 0;
}

.conditions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.condition-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.condition-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.condition-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.condition-icon i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.condition-box h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.condition-box p {
    color: #666;
    line-height: 1.8;
}

.condition-box strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.conditions-note {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.conditions-note i {
    font-size: 2.5rem;
    color: var(--primary-color);
    min-width: 40px;
}

.conditions-note p {
    font-size: 1.1rem;
    margin: 0;
}

/* Contacto */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #ffed4e;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .calculator,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .conditions-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 50px 0;
    }
}

/* Popup Modal */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    text-align: center;
}

.popup-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup-content p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.popup-price {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: bold;
    margin: 1rem 0;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.popup-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.popup-btn-accept {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.popup-btn-accept:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.popup-btn-cancel {
    background: #e0e0e0;
    color: var(--text-color);
}

.popup-btn-cancel:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animación de Taxi en Carretera */
.taxi-animation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 60%, #808080 60%, #808080 100%);
    z-index: 3000;
    overflow: hidden;
}

.taxi-animation-overlay.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.road {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: #404040;
    overflow: hidden;
}

.road-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 20px,
        #fff 20px,
        #fff 60px
    );
    animation: roadMove 1s linear infinite;
}

.taxi-car {
    position: absolute;
    bottom: 45%;
    left: -150px;
    width: 120px;
    height: 60px;
    animation: taxiDrive 3s ease-in-out forwards;
}

.taxi-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.taxi-main {
    position: absolute;
    bottom: 15px;
    left: 10px;
    width: 100px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 5px 5px 2px 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.taxi-roof {
    position: absolute;
    bottom: 35px;
    left: 30px;
    width: 50px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 8px 8px 0 0;
}

.taxi-window {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 18px;
    height: 14px;
    background: #87CEEB;
    border-radius: 3px;
}

.taxi-window.back {
    left: 27px;
}

.taxi-light {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.taxi-light.front {
    right: 2px;
}

.taxi-light.back {
    left: 2px;
    background: #ff4444;
}

.taxi-wheel {
    position: absolute;
    bottom: 8px;
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    border: 3px solid #666;
    animation: wheelRotate 0.5s linear infinite;
}

.taxi-wheel.front {
    right: 15px;
}

.taxi-wheel.back {
    left: 15px;
}

.taxi-sign {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.clouds {
    position: absolute;
    top: 20%;
    width: 100%;
    height: 100px;
}

.cloud {
    position: absolute;
    background: #fff;
    border-radius: 100px;
    opacity: 0.8;
    animation: cloudMove 15s linear infinite;
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 100px;
}

.cloud-1 {
    width: 80px;
    height: 30px;
    top: 0;
    left: 10%;
}

.cloud-1:before {
    width: 50px;
    height: 40px;
    top: -20px;
    left: 10px;
}

.cloud-1:after {
    width: 40px;
    height: 30px;
    top: -15px;
    right: 10px;
}

.cloud-2 {
    width: 100px;
    height: 35px;
    top: 50px;
    left: 60%;
    animation-delay: -5s;
}

.cloud-2:before {
    width: 60px;
    height: 45px;
    top: -22px;
    left: 15px;
}

.cloud-2:after {
    width: 45px;
    height: 35px;
    top: -18px;
    right: 15px;
}

.animation-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    animation: messageAppear 0.5s ease 1.5s forwards;
}

.animation-message i {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

@keyframes roadMove {
    from {
        transform: translateX(0) translateY(-50%);
    }
    to {
        transform: translateX(-80px) translateY(-50%);
    }
}

@keyframes taxiDrive {
    0% {
        left: -150px;
        transform: translateY(0);
    }
    70% {
        left: 50%;
        transform: translateX(-50%) translateY(0);
    }
    85% {
        transform: translateX(-50%) translateY(-5px);
    }
    100% {
        left: 50%;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes wheelRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes cloudMove {
    from {
        transform: translateX(-100px);
    }
    to {
        transform: translateX(calc(100vw + 100px));
    }
}

@keyframes messageAppear {
    to {
        opacity: 1;
    }
}

/* Animaciones de entrada para elementos */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de pulso para botones */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animación de brillo para elementos importantes */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

/* Animación de rebote suave */
.bounce-soft {
    animation: bounceSoft 2s ease-in-out infinite;
}

@keyframes bounceSoft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Respeto por preferencias de accesibilidad - Reducir animaciones */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bounce-soft,
    .pulse-animation,
    .taxi-wheel,
    .road-line,
    .cloud {
        animation: none !important;
    }
    
    .service-card:hover,
    .contact-item:hover,
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Optimización para dispositivos de bajo rendimiento */
@media (max-width: 768px) {
    /* Reducir complejidad de animaciones en móviles */
    .taxi-animation-overlay .clouds,
    .bounce-soft {
        animation: none;
    }
    
    .service-card::before,
    .btn-primary::before {
        display: none;
    }
}
