:root {
    --bg-color: #f4f7f6;
    --text-color: #1a1a1a;
    --accent-primary: #00b4d8;
    /* Ajustado el cyan a uno más legible en blanco */
    --accent-secondary: #e63946;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
    background-color: #ffffff;
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

#bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('fondoipal.png') no-repeat center center / cover;
    opacity: 0.3;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #0077b6, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    margin-left: 1rem;
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(0, 180, 216, 0.1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo img {
    height: 120px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}


.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #333;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

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

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

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    max-width: 50%;
    z-index: 10;
}

.hero-image {
    max-width: 50%;
    position: relative;
    z-index: 5;
}

.hero-image img {
    width: 120%;
    transform: translateX(10%);
    filter: drop-shadow(0 0 30px rgba(0, 242, 234, 0.3));
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) translateX(10%);
    }

    50% {
        transform: translateY(-20px) translateX(10%);
    }

    100% {
        transform: translateY(0px) translateX(10%);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(10%);
    }
}

.floating-img {
    animation: float 6s ease-in-out infinite;
}

.slide-in-right {
    animation: slideInRight 1.5s ease-out forwards, float 6s ease-in-out infinite 1.5s;
}

/* Features Visual Update */
.features-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: none;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-top: 4rem;
    background: #fff;
}

footer p {
    color: #888;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(80px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Services Section */
.services {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 180, 216, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.card p {
    color: #666;
}

/* Why Us Section */
.why-us {
    padding: 8rem 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent-primary);
    margin-right: 1rem;
    font-weight: bold;
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* Location Section */
.location-section {
    padding: 8rem 0;
    background: #f9f9f9;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 40%;
    /* Aspect ratio */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

@media (max-width: 768px) {
    .map-container {
        padding-bottom: 75%;
        /* Taller aspect ratio for mobile */
    }
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: #666;
}

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

    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem 0;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.95rem;
    color: #444;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}