/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #d4af37;
    --accent-hover: #c5a028;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --dark: #1a1a2e;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --error: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-dorado {
    background: var(--accent);
    color: var(--primary);
}

.btn-dorado:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-dorado:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.btn-login .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 26, 46, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-login.loading .spinner {
    display: inline-block;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-nav {
    background: var(--accent);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 12px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo i {
    color: var(--accent);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links .btn-nav {
    background: var(--accent);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-links .btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.nav-links .btn-nav::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--white), transparent);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, -5%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent);
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    color: var(--white);
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--accent);
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--accent);
    transition: var(--transition);
}

.service-card:hover .icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== PROPIEDADES ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-badge.venta {
    background: var(--success);
    color: white;
}

.property-badge.alquiler {
    background: #3498db;
    color: white;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.property-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 10px 0;
}

.property-info .location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-info .location i {
    margin-right: 5px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--gray);
}

.property-features span i {
    margin-right: 5px;
    color: var(--accent);
}

.property-card .btn {
    width: 100%;
    margin-top: 15px;
}

/* ===== TESTIMONIOS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-card .stars {
    color: var(--accent);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-author .name {
    font-weight: 600;
}

.testimonial-author .role {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 80px 5%;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 5% 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== LOGIN ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    animation: floatBg 20s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, -5%) rotate(5deg); }
}

.login-card {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeIn 0.6s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.login-header .logo i {
    color: var(--accent);
}

.login-header .subtitle {
    color: var(--gray);
    font-size: 0.95rem;
}

.login-header .badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ===== ALERTAS ===== */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.alert-error {
    background: #fff5f5;
    border-left: 4px solid var(--error);
    color: var(--error);
}

.alert-success {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert i {
    font-size: 1.2rem;
}

/* ===== INPUT CON ICONO ===== */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-group input.error {
    border-color: var(--error);
    background: #fff5f5;
}

.input-group .toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    font-size: 1rem;
}

.input-group .toggle-password:hover {
    color: var(--primary);
}

.input-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.input-error.show {
    display: block;
}

/* ===== OPCIONES DEL FORMULARIO ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    cursor: pointer;
}

.form-options label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-options a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-options a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    color: var(--gray);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ===== FOOTER LOGIN ===== */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.login-footer .back-home {
    display: inline-block;
    margin-top: 10px;
    color: var(--gray);
    font-weight: 400;
}

.login-footer .back-home:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ===== SUCCESS ===== */
.success-container {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin: 2rem auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.details {
    text-align: left;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.details-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.details-item:last-child {
    border-bottom: none;
}

/* ===== WIZARD ===== */
.main-layout {
    max-width: 1000px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sidebar */
.progress-bar {
    background: var(--primary);
    padding: 2rem 1.5rem;
    color: white;
    min-height: 500px;
}

.progress-bar h3 {
    color: #e0e0e0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.step {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #888;
    font-weight: 500;
    font-size: 0.9rem;
}

.step:hover {
    background: rgba(255,255,255,0.05);
}

.step.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent);
}

.step.active::before {
    content: '›';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.step.completed {
    color: #4CAF50;
}

.step.completed::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    color: #4CAF50;
}

.step-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-right: 0.8rem;
    font-size: 0.8rem;
}

.step.active .step-number {
    background: var(--accent);
    color: var(--primary);
}

/* Formulario Wizard */
.wizard-container {
    padding: 2.5rem;
    background: white;
}

.wizard-container h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.wizard-container .subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group label .required {
    color: var(--error);
    margin-left: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
    background: #fff5f5;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

.error-list {
    background: #fff5f5;
    border-left: 4px solid var(--error);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.3rem;
}

.error-list li {
    color: var(--error);
    list-style: none;
    padding: 0.3rem 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

/* Resumen */
.resumen-card {
    background: var(--light-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-item .label {
    color: var(--gray);
    font-weight: 500;
}

.resumen-item .value {
    color: var(--primary);
    font-weight: 600;
}

.resumen-total {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--accent);
}

/* ===== ANIMACIONES ===== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-stats {
        gap: 30px;
    }

    .hero-stats .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: var(--transition);
        gap: 20px;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links .btn-nav {
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .main-layout {
        grid-template-columns: 1fr;
        border-radius: 0.5rem;
        margin: 1rem;
    }

    .progress-bar {
        min-height: auto;
        padding: 1.5rem;
    }

    .progress-bar h3 {
        margin-bottom: 1rem;
    }

    .step {
        display: inline-block;
        padding: 0.5rem 1rem;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }

    .step.active::before,
    .step.completed::after {
        display: none;
    }

    .wizard-container {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 1.5rem 1rem;
    }

    .login-header .logo {
        font-size: 1.4rem;
    }

    .success-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}