:root {
    --color-red: #DC3545;
    --color-blue: #0D6EFD;
    --color-dark: #212529;
    --color-light: #F8F9FA;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-red) !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="20" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="15" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 500px 500px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 500px 500px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInDown 1s ease-out;
}

.hero-section .lead {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
    animation: slideInUp 1s ease-out 0.4s both;
    font-size: 1.1rem;
    padding: 12px 40px;
    border: none;
    transition: all 0.3s ease;
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Servicios Section */
#servicios {
    padding-top: 80px;
    padding-bottom: 80px;
}

#servicios h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

#servicios h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-blue) 100%);
    border-radius: 2px;
}

.row {
    margin-bottom: 80px;
}

#servicios h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

#servicios p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

#servicios ul li {
    font-size: 1rem;
    padding: 8px 0;
    color: #555;
}

#servicios .img-fluid {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicios .img-fluid:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Contacto Section */
#contacto {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #fff;
}

#contacto h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

#contacto h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-blue) 100%);
    border-radius: 2px;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-title {
    font-size: 1.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* CAPTCHA */
.captcha-box {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background-color: #f5f5f5;
}

.captcha-box p {
    font-size: 1.1rem;
    color: var(--color-dark);
}

.captcha-box input {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
}

.captcha-box input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* Botón Enviar */
.btn-danger {
    background: linear-gradient(135deg, var(--color-red) 0%, #c82333 100%);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, var(--color-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.3);
}

/* Mensajes de formulario */
#form-message {
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mapa */
#mapa {
    z-index: 1;
}

.leaflet-container {
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    margin-top: 60px;
    border-top: 3px solid var(--color-red);
}

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    #servicios h2,
    #contacto h2 {
        font-size: 2rem;
    }

    #servicios h3 {
        font-size: 1.5rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .row {
        margin-bottom: 40px;
    }
}

/* Utilidades */
.text-danger {
    color: var(--color-red) !important;
}

.text-primary {
    color: var(--color-blue) !important;
}

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

.btn-outline-danger:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
}

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

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