/* ============================================
   VARIABLES Y COLORES PREMIUM
   ============================================ */
:root {
    --primary-color: #1a3a52;
    --primary-light: #2d5a7b;
    --accent-color: #ff9500;
    --accent-light: #ffb84d;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e8eef5;
    --shadow-sm: 0 2px 8px rgba(26, 58, 82, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 58, 82, 0.12);
    --shadow-lg: 0 8px 32px rgba(26, 58, 82, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET Y ESTILOS GLOBALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Trebuchet MS, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* ============================================
   CONTENEDOR Y GRID
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

nav > div:last-child {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 14px;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-whatsapp {
    background: #25d366;
    color: var(--bg-white);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SECCIÓN HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: rgba(255, 149, 0, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   TARJETAS
   ============================================ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   SECCIONES
   ============================================ */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
}

section > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 16px;
}

#como-funciona {
    background: var(--bg-light);
}

#ventajas {
    background: var(--bg-white);
}

#contacto {
    background: var(--bg-light);
}

#profesionales {
    background: var(--bg-white);
}

#faq {
    background: var(--bg-light);
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

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

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-group input[type="checkbox"] + label {
    display: inline;
    margin-bottom: 0;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    background: var(--bg-white);
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 16px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 40px 0;
    text-align: center;
}

footer h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

footer p {
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 0.7;
}

/* ============================================
   MENSAJES DE CONFIRMACIÓN
   ============================================ */
#confirmacion-cliente,
#confirmacion-profesional {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: 600;
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-header {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 5px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.recibida {
    background: #cfe2ff;
    color: #084298;
}

.status-badge.presupuesto {
    background: #fff3cd;
    color: #664d03;
}

.status-badge.completada {
    background: #d1e7dd;
    color: #0f5132;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }

    section h2 {
        font-size: 28px;
    }

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

    nav {
        flex-direction: column;
        gap: 16px;
    }

    nav > div:last-child {
        width: 100%;
        justify-content: center;
    }

    .form-container {
        padding: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 8px;
    }
}

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

.card {
    animation: slideInUp 0.6s ease-out;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
#testimonios {
    background: var(--bg-light);
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stars {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 12px;
    font-style: italic;
}

.testimonial-card .author {
    color: var(--text-light);
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
}

/* ============================================
   SECCIÓN DE CONFIANZA
   ============================================ */
#confianza {
    background: var(--bg-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.trust-item {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-light);
    transition: var(--transition);
}

.trust-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.trust-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: inline-block;
}

.trust-item h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
}

.trust-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    color: var(--bg-white);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.whatsapp-float a:hover {
    background: #20ba5a;
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

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

/* ============================================
   BANNER DE COOKIES
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 998;
    box-shadow: var(--shadow-lg);
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-content p {
        font-size: 13px;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
    }
}
