/* ============================================
   CANPADEL - STYLES.CSS
   Mobile-First Responsive Design
   Optimizado para SEO y Performance
   ============================================ */

/* === RESET & BASE === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-primary-light: #dbeafe;
    --color-accent: #3b82f6;
    --color-success: #10b981;
    --color-dark: #111827;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-white: #ffffff;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

strong {
    font-weight: 700;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-small {
    max-width: 960px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* === HEADER === */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 1rem;
}

@media (min-width: 640px) {
    .header-content {
        height: 80px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-gray-900);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 0.75rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.25rem;
    font-style: italic;
}

.logo-icon-small {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 0.875rem;
    font-style: italic;
}

.logo-text {
    letter-spacing: -0.025em;
}

.logo-accent {
    color: var(--color-primary);
    font-style: italic;
}

.header-contact {
    display: none;
}

@media (min-width: 1024px) {
    .header-contact {
        display: flex;
        align-items: center;
        gap: 2rem;
        font-size: 0.875rem;
        font-weight: 500;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-600);
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--color-primary);
}

.contact-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.whatsapp-button:hover {
    background-color: var(--color-primary-dark);
}

@media (min-width: 1024px) {
    .whatsapp-button {
        display: none;
    }
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 3rem 0 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #dbeafe, #ffffff, #f9fafb);
    opacity: 0.6;
    z-index: 0;
}

@media (min-width: 1024px) {
    .hero {
        padding: 0;
    }
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.badge-blue {
    background-color: rgba(37, 99, 235, 0.1);
    color: #1e40af;
    border-color: rgba(37, 99, 235, 0.2);
}

.badge-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-amber {
    background-color: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
}

.badge svg {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-gray-900);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.text-accent {
    color: var(--color-primary);
}

.text-accent-light {
    color: #60a5fa;
}

.text-light {
    color: #dbeafe;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 36rem;
    line-height: 1.75;
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
}

@media (min-width: 640px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.features-list svg {
    flex-shrink: 0;
    background-color: var(--color-primary);
    color: white;
    border-radius: 9999px;
    padding: 0.25rem;
}

/* === CONTACT FORM === */
.contact-form-wrapper {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-gray-100);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .contact-form-wrapper {
        padding: 2.5rem;
    }
}

.form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--color-gray-500);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--color-gray-50);
    border: 1px solid var(--color-gray-100);
    font-size: 0.875rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: none;
    font-family: inherit;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.01);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-xl);
}

.btn-white:hover {
    background-color: var(--color-primary-light);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* === SECTIONS === */
.section {
    padding: 6rem 0;
}

@media (min-width: 1024px) {
    .section {
        padding: 8rem 0;
    }
}

.section-gray {
    background-color: var(--color-gray-50);
}

.section-dark {
    background-color: var(--color-gray-900);
    color: white;
}

.section-blue {
    background-color: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-cta {
    background: linear-gradient(to right, #1e40af, #3b82f6);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-white {
    color: white;
}

.section-header-white .section-subtitle {
    color: #dbeafe;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-header-white .section-title {
    color: white;
}

.section-subtitle {
    color: var(--color-gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

/* === MODELS SECTION === */
.models-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.model-card {
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-gray-100);
    transition: var(--transition);
}

.model-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.model-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-card:hover .model-image img {
    transform: scale(1.1);
}

.model-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
}

.model-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.model-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-gray-900);
}

.model-description {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    line-height: 1.75;
}

.model-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    list-style: none;
}

.model-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray-500);
}

.model-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: var(--color-primary);
    flex-shrink: 0;
}

/* === BENEFITS SECTION === */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.benefit-card {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-gray-100);
    background-color: var(--color-gray-50);
    transition: var(--transition);
    cursor: pointer;
}

.benefit-card:hover {
    background-color: var(--color-primary);
}

.benefit-card:hover .benefit-title,
.benefit-card:hover .benefit-description {
    color: white;
}

.benefit-card:hover .benefit-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.benefit-card:hover .benefit-icon svg {
    color: white;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.benefit-icon svg {
    color: var(--color-primary);
    transition: var(--transition);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.benefit-description {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    line-height: 1.75;
    transition: var(--transition);
}

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-title {
    font-size: 1.875rem;
    font-weight: 900;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 3rem;
    }
}

.about-divider {
    height: 6px;
    width: 6rem;
    background-color: var(--color-primary);
    border-radius: 9999px;
    margin: 1rem 0 2rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.75;
}

.about-text .highlight {
    font-weight: 600;
    color: #60a5fa;
}

.stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: #3b82f6;
    letter-spacing: -0.05em;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.1em;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    transform: rotate(3deg);
    transition: transform 0.5s ease;
    border: 8px solid var(--color-gray-800);
}

.about-image:hover img {
    transform: rotate(0deg);
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    font-weight: 700;
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* === TESTIMONIALS === */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.quote-icon {
    color: #93c5fd;
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

.testimonial-text {
    color: white;
    font-size: 0.875rem;
    line-height: 1.75;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 700;
}

.author-name {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-location {
    color: #dbeafe;
    font-size: 0.75rem;
}

/* === FAQ SECTION === */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--color-gray-100);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--color-gray-50);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-gray-800);
    cursor: pointer;
    transition: var(--transition);
    list-style: none;
}

@media (min-width: 768px) {
    .faq-question {
        font-size: 1rem;
    }
}

.faq-question:hover {
    background-color: var(--color-gray-100);
}

.faq-icon {
    color: var(--color-gray-400);
    flex-shrink: 0;
    transition: var(--transition);
}

details[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    padding: 1.5rem;
    background-color: white;
}

.faq-answer p {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    line-height: 1.75;
}

/* === CTA SECTION === */
.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 900;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-subtitle {
    color: #dbeafe;
    max-width: 36rem;
    margin: 0 auto;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* === FOOTER === */
.footer {
    background-color: #030712;
    color: white;
    padding: 5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-gray-800);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col-main {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .footer-col-main {
        grid-column: span 2;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.75;
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-color: var(--color-gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    font-size: 0.875rem;
}

.footer-links a,
.footer-contact a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #60a5fa;
}

.footer-contact li {
    color: #9ca3af;
}

.footer-hashtag {
    color: #3b82f6 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    padding-top: 0.5rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: #d1d5db;
}

/* === UTILITIES === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,
    .whatsapp-button,
    .contact-form-wrapper,
    .cta-buttons,
    .footer {
        display: none;
    }
}

/* Honeypot: fuera de pantalla (no display:none para que lo llenen bots) */
.hp-field{
  position:absolute;
  left:-10000px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Mensajes */
.form-alert{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.form-alert--success{
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
}
.form-alert--error{
  background: rgba(220, 53, 69, 0.10);
  border: 1px solid rgba(220, 53, 69, 0.35);
}
.form-alert a{
  color: inherit;
  text-decoration: underline;
}


/* Fuerza que hidden siempre oculte, aunque haya reglas display en tu CSS */
[hidden] { display: none !important; }


