/* CSS Variables & Theme Setup */
:root {
    --primary-color: #0F52BA; /* Sapphire Blue */
    --secondary-color: #00B4D8; /* Ocean Blue */
    --accent-color: #0077B6;
    --dark-bg: #03045E;
    --light-bg: #F8F9FA;
    --text-main: #2B2D42;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    
    --font-main: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}
.logo span {
    color: var(--secondary-color);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary, .btn-primary-outline, .btn-secondary, .btn-submit {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

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

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

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

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--light-bg);
}

.btn-submit {
    width: 100%;
    background: #25D366; /* WhatsApp Color */
    color: white;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
}

/* Hero Section (Split Layout) */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--dark-bg);
    color: var(--white);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/assets/img/gallery/banos_ia.png');
    background-size: cover;
    background-position: center;
    opacity: 0.45; /* Aumentamos visibilidad para dar relevancia a la foto IA ultra-realista */
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, #48CAE4, #90E0EF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Calculator in Hero */
.hero-calculator {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.calc-title {
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    text-align: center;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* Benefits Section */
.benefits-section {
    padding: 60px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--light-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.benefit-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Calculator Section (Eliminada, pero mantenemos clases usadas en form) */
.compact-list {
    list-style: none;
}

.compact-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

input, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.1);
}

.compact-hint {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.compact-price {
    background: var(--dark-bg);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.compact-price::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
}

.price-breakdown {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
}

.total-price h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.total-price .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.iva-note {
    font-size: 0.8rem;
    opacity: 0.8;
}

.compact-divider {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}

.compact-heading {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 400px;
}

.footer-info .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}
.footer-contact a {
    color: var(--secondary-color);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
        margin: 0 auto;
    }
    
    .stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}
