:root {
    --primary: #4A7C7A;
    --primary-dark: #3a6261;
    --secondary: #E8DED2;
    --accent: #2D3436;
    --bg: #F9F7F2;
    --white: #ffffff;
    --text: #2D3436;
    --text-light: #636e72;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-on { color: var(--primary); }
.brand-off { color: var(--accent); }
.brand-line { font-weight: 300; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 124, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(74, 124, 122, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.hero-title span {
    display: block;
    color: var(--primary);
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(74, 124, 122, 0.1), transparent);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-align: left;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 4rem;
}

/* Philosophy Section */
.philosophy {
    background-color: var(--secondary);
    border-radius: 100px 100px 0 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* About Section */
.about {
    background: var(--bg);
}

.about-container {
    background: var(--white);
    padding: 5rem;
    border-radius: 40px;
    box-shadow: var(--shadow);
}

.about-quote {
    margin-top: 2rem;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 2rem;
}

/* Testimonials 3D Carousel */
.testimonials {
    background: #fdfcfb;
    overflow: hidden;
}

.carousel-3d-wrapper {
    position: relative;
    height: 450px;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-3d {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.testimonial-card {
    position: absolute;
    width: 400px;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 0, -300px);
}

.testimonial-card.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

.testimonial-card.prev {
    opacity: 0.5;
    transform: translate3d(-350px, 0, -200px) rotateY(30deg);
    z-index: 5;
}

.testimonial-card.next {
    opacity: 0.5;
    transform: translate3d(350px, 0, -200px) rotateY(-30deg);
    z-index: 5;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary);
    display: block;
    text-align: right;
}

.carousel-controls {
    position: absolute;
    bottom: -20px;
    display: flex;
    gap: 1rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--primary);
    color: white;
}

/* AI CTA */
.ai-cta {
    background: var(--accent);
    color: var(--white);
    border-radius: 100px 100px 0 0;
}

.ai-cta-container {
    text-align: center;
    padding: 4rem 0;
}

.ai-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.ai-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: #1e272e;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-logo p {
    margin-top: 1rem;
    opacity: 0.6;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.on { background: #55efc4; box-shadow: 0 0 10px #55efc4; }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; }
    .testimonial-card { width: 90%; }
}

/* ===== Formulario de opiniones ===== */
.review-form-wrapper {
    max-width: 600px;
    margin: 5rem auto 0;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.review-form-title {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-align: center;
}

.review-form-desc {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.review-form textarea { resize: vertical; }

/* Honeypot oculto */
.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Estrellas */
.star-rating {
    display: flex;
    gap: 0.4rem;
    font-size: 1.8rem;
    color: #ddd;
}

.star-rating i {
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating i:hover { transform: scale(1.15); }

.star-rating i.selected,
.star-rating i.hovered {
    color: #f5b301;
}

/* Mensajes */
.form-message {
    min-height: 1.4rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-message.error { color: #c0392b; }
.form-message.success { color: var(--primary); }

.review-form .btn-primary {
    width: 100%;
    text-align: center;
}

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

/* Estrellas dentro de las tarjetas del carrusel */
.testimonial-card .card-stars {
    color: #f5b301;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
