/* ============================================
   Reset y Variables Globales
   ============================================ */
:root {
    --primary-color: #2d5016;
    --primary-dark: #1f3710;
    --primary-light: #3d6b1f;
    --accent-color: #d4a574;
    --accent-light: #e8c9a8;
    --text-color: #1a1a1a;
    --text-light: #606060;
    --bg-color: #ffffff;
    --bg-light: #f8f7f4;
    --border-color: #e5e5e5;
    --success-color: #27ae60;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ============================================
   Utilidades
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* ============================================
   Botones
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn.full-width {
    width: 100%;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
        font-size: 14px;
    }
    
    .logo {
        font-size: 18px;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0ede9 100%);
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 36px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.domain-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.8s ease-out;
    border-top: 4px solid var(--accent-color);
}

.domain-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.domain-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    word-break: break-word;
}

.domain-extension {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: 600;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .domain-card {
        padding: 30px 20px;
    }
}

/* ============================================
   Secciones
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

/* ============================================
   Features
   ============================================ */
.features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

/* ============================================
   Ventajas
   ============================================ */
.advantages {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.advantages .section-title {
    color: white;
}

.advantages .section-title::after {
    background-color: var(--accent-color);
}

.advantages-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.advantage-item p {
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .advantages-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .advantage-item {
        padding: 24px;
    }
}

/* ============================================
   Especificaciones
   ============================================ */
.specs {
    background-color: var(--bg-light);
}

.specs-table {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-color);
    flex: 0 0 40%;
}

.spec-value {
    color: var(--text-color);
    text-align: right;
    flex: 1;
}

@media (max-width: 768px) {
    .specs-table {
        border-radius: 8px;
    }
    
    .spec-row {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .spec-label,
    .spec-value {
        flex: auto;
        text-align: center;
    }
}

/* ============================================
   Contacto
   ============================================ */
.contact {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0ede9 100%);
}

.contact-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group button {
    margin-top: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-block {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-color);
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 18px;
}

.info-block p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 15px;
}

.info-block p a {
    color: var(--primary-color);
    font-weight: 600;
}

.info-block ol {
    color: var(--text-light);
    margin-left: 20px;
    font-size: 15px;
}

.info-block li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-form,
    .info-block {
        padding: 24px;
    }
    
    .contact-subtitle {
        margin-bottom: 32px;
    }
}

/* ============================================
   Modal (Emergente)
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.modal.modal-show {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalContentSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalContentSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05) 0%, rgba(45, 80, 22, 0.02) 100%);
}

.modal-header.success-header {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(39, 174, 96, 0.03) 100%);
}

.modal-header.error-header {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, rgba(231, 76, 60, 0.03) 100%);
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 40px;
    font-weight: bold;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: modalIconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-success .modal-icon {
    color: #27ae60;
    border: 3px solid #27ae60;
}

.modal-error .modal-icon {
    color: #e74c3c;
    border: 3px solid #e74c3c;
}

@keyframes modalIconBounce {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.modal-success .modal-body h2 {
    color: #27ae60;
}

.modal-error .modal-body h2 {
    color: #e74c3c;
}

.modal-body p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.modal-details {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 8px 0;
}

.detail-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.detail-label {
    font-weight: 600;
    color: var(--primary-color);
}

.detail-value {
    color: var(--text-light);
}

.modal-hint {
    background: rgba(241, 196, 15, 0.05);
    border-left: 4px solid #f1c40f;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.modal-hint strong {
    color: var(--primary-color);
    display: block;
    margin-top: 6px;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    background: white;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn {
    flex: 1;
}

.modal-close {
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: calc(100% - 32px);
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 24px 20px 16px;
    }
    
    .modal-body {
        padding: 24px 20px;
    }
    
    .modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .modal-icon {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }
    
    .modal-body h2 {
        font-size: 20px;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: var(--accent-color);
    font-weight: 600;
}

.footer a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 0;
    }
    
    .footer p {
        font-size: 13px;
    }
}

/* ============================================
   Accesibilidad y Performance
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .contact-form,
    .footer {
        display: none;
    }
}
