/* Base styles and variables */
:root {
    --red: #c60b1e;
    --yellow: #ffc400;
    --dark: #333333;
    --light: #FFFFFF;
    --gray: #f4f4f4;
    --gray-dark: #777;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius: 8px;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Reset and base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: var(--red);
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5em;
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--red), var(--yellow));
}

.section-subtitle {
    text-align: center;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Buttons */
.primary-button, .secondary-button, .cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-button {
    background: linear-gradient(to right, var(--red), var(--red));
    color: var(--light);
    border: none;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(to right, var(--red), #a30919);
}

.secondary-button {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--yellow);
    padding: 10px 26px;
}

.secondary-button:hover {
    background-color: var(--yellow);
    color: var(--dark);
    transform: translateY(-3px);
}

.cta-button {
    background: var(--yellow);
    color: var(--dark);
    border: none;
    font-weight: 700;
    padding: 15px 35px;
    box-shadow: 0 4px 15px rgba(255, 196, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 196, 0, 0.4);
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--dark);
}

.logo-icon {
    margin-right: 10px;
}

h1 {
    font-size: 1.5rem;
    color: var(--red);
}

h1 span {
    color: var(--dark);
    font-weight: 400;
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--red), var(--yellow));
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--red);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.cta-nav-button {
    background: linear-gradient(to right, var(--red), var(--yellow));
    color: var(--light) !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.cta-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-nav-button::after {
    display: none;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(198, 11, 30, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 196, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h2 span {
    color: var(--red);
    position: relative;
}

.hero-content h2 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 196, 0, 0.2);
    z-index: -1;
}

.hero-content p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ai-icon-container {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid rgba(198, 11, 30, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

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

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Features Section with Hexagon Grid */
.features {
    padding: 100px 0;
    position: relative;
    background-color: var(--gray);
}

.hexagon-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(198, 11, 30, 0.05) 0%, rgba(255, 196, 0, 0.05) 100%);
    z-index: -1;
}

.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.hexagon-item {
    position: relative;
    width: 100%;
    padding-top: 110%;
    margin-bottom: 20px;
}

.hexagon-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background-color: var(--light);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hexagon-item:hover .hexagon-content {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    margin-bottom: 20px;
}

.hexagon-content h3 {
    color: var(--red);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.hexagon-content p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* How It Works - Abanico (Spanish Fan) Style */
.how-it-works {
    padding: 100px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    right: -5%;
    top: -10%;
    width: 30%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 196, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.how-it-works::after {
    content: '';
    position: absolute;
    left: -5%;
    bottom: -10%;
    width: 30%;
    height: 50%;
    background: radial-gradient(circle, rgba(198, 11, 30, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.abanico-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.abanico-step {
    width: 100%;
    display: flex;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.abanico-step:nth-child(even) {
    justify-content: flex-end;
}

.abanico-step:nth-child(even) .abanico-number {
    order: 2;
    margin-left: 20px;
    margin-right: 0;
}

.abanico-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--yellow);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    box-shadow: var(--shadow);
    border: 3px solid var(--light);
    flex-shrink: 0;
}

.abanico-content {
    background-color: var(--light);
    padding: 20px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 70%;
    transition: var(--transition);
}

.abanico-step:hover .abanico-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.abanico-content h3 {
    color: var(--red);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.abanico-content p {
    margin-bottom: 0;
    color: var(--gray-dark);
}

.abanico-connector {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 80%;
    background-color: var(--red);
    z-index: 1;
}

.abanico-connector::before,
.abanico-connector::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--yellow);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.abanico-connector::before {
    top: 0;
}

.abanico-connector::after {
    bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--gray);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--light);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-strong);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--red);
    font-weight: bold;
    transition: var(--transition);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 20px;
}

.accordion-content p {
    margin: 0;
    color: var(--gray-dark);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--light);
}

.cta-card {
    background: linear-gradient(135deg, var(--red) 0%, #f03c02 100%);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    color: var(--light);
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    z-index: 1;
}

.cta-card h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
    position: relative;
    z-index: 2;
}

.cta-card p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    margin-bottom: 30px;
}

.footer-logo {
    margin-right: 20px;
}

.footer-brand-text h3 {
    margin-bottom: 5px;
    color: var(--light);
    font-size: 1.3rem;
}

.footer-brand-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-column h4 {
    color: var(--yellow);
    margin-bottom: 20px;
    position: relative;
    font-size: 1.1rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--red);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul li a:hover {
    color: var(--light);
}

.keywords li {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-wrapper {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hexagon-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .abanico-content {
        width: 80%;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--light);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: var(--transition);
        z-index: 100;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 10px 0;
    }
    
    .abanico-step {
        width: 100%;
    }
    
    .abanico-step:nth-child(even) {
        justify-content: flex-start;
    }
    
    .abanico-step:nth-child(even) .abanico-number {
        order: 1;
        margin-right: 20px;
        margin-left: 0;
    }
    
    .abanico-content {
        width: calc(100% - 80px);
    }
    
    .cta-card {
        padding: 30px;
    }
    
    .footer-links {
        width: 100%;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .section-title, .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
        max-width: 80%;
    }
    
    .hexagon-grid {
        grid-template-columns: 1fr;
    }
}
