/* Río Baya - Estilos Globales */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #2c7873;
    --teal-light: #3d9791;
    --coral: #e87461;
    --yellow: #f5a623;
    --cream: #fffbf5;
    --white: #ffffff;
    --dark: #1f2937;
    --gray: #6b7280;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 55px;
}

.menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.menu a:hover {
    color: var(--teal);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
    position: relative;
    min-height: 650px;
    background: url('../images/puerto-pesquero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 120, 115, 0.85) 0%, rgba(44, 120, 115, 0.65) 100%);
    z-index: 1;
}

.hero-wrap {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    max-width: 700px;
    color: white;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text .highlight {
    color: var(--yellow);
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.trust {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.trust-item span {
    font-size: 1.3rem;
}

.btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--teal);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 120, 115, 0.3);
}

.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 120, 115, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Sections */
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.label {
    display: inline-block;
    background: var(--coral);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-head p {
    font-size: 1.15rem;
    color: var(--gray);
}

/* Grid */
.grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Feature Cards */
.feature {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature:nth-child(1) {
    background: linear-gradient(135deg, #e8f5f4 0%, #d4ece9 100%);
    border-color: var(--teal-light);
}

.feature:nth-child(2) {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    border-color: var(--yellow);
}

.feature:nth-child(3) {
    background: linear-gradient(135deg, #ffede9 0%, #ffd9d1 100%);
    border-color: var(--coral);
}

.feature:nth-child(4) {
    background: linear-gradient(135deg, #e8f5f4 0%, #d4ece9 100%);
    border-color: var(--teal-light);
}

.feature:nth-child(5) {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    border-color: var(--yellow);
}

.feature:nth-child(6) {
    background: linear-gradient(135deg, #ffede9 0%, #ffd9d1 100%);
    border-color: var(--coral);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: var(--teal);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.feature:nth-child(1) .feature-icon {
    background: var(--teal);
}

.feature:nth-child(2) .feature-icon {
    background: var(--yellow);
}

.feature:nth-child(3) .feature-icon {
    background: var(--coral);
}

.feature:nth-child(4) .feature-icon {
    background: var(--teal);
}

.feature:nth-child(5) .feature-icon {
    background: var(--yellow);
}

.feature:nth-child(6) .feature-icon {
    background: var(--coral);
}

.feature h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature p {
    color: var(--gray);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 8rem 1.5rem;
    background: var(--teal);
    color: white;
    margin-top: 3rem;
}

.about-wrap {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.about-text .accent {
    color: var(--yellow);
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.benefits {
    list-style: none;
    margin-top: 2rem;
}

.benefits li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: bold;
    font-size: 1.4rem;
}

/* Stats */
.stats {
    padding: 5rem 1.5rem;
    background: var(--cream);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat p {
    color: var(--gray);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Contact */
.contact {
    padding: 5rem 1.5rem;
    background: white;
}

.contact-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.contact-head {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-head p {
    font-size: 1.15rem;
    color: var(--gray);
}

.form {
    background: var(--cream);
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--dark);
}

.field input,
.field textarea {
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.submit {
    width: 100%;
    margin-top: 1rem;
}

.info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--cream);
    border-radius: 16px;
}

.info-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.info-card p {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--coral);
}

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

/* Responsive */
@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 83px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .menu.open {
        transform: translateX(0);
    }
    
    .burger {
        display: flex;
    }
    
    .hero {
        min-height: 550px;
        padding: 3rem 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .about-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-img {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .section-head h2,
    .about-text h2,
    .contact-head h2 {
        font-size: 2.2rem;
    }
    
    .btns {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .form {
        padding: 2rem 1.5rem;
    }
    
    .trust {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .stat h3 {
        font-size: 3rem;
    }
}

/* Páginas Legales */
.legal-page {
    padding: 6rem 1.5rem;
    background: white;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.last-update {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--cream);
}

.legal-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--teal);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.legal-container h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-container p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: justify;
}

.legal-container ul {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    line-height: 1.8;
}

.legal-container ul li {
    margin-bottom: 0.8rem;
    color: var(--gray);
}

.legal-container strong {
    color: var(--dark);
    font-weight: 700;
}

.legal-container a {
    color: var(--teal);
    text-decoration: underline;
    transition: color 0.3s;
}

.legal-container a:hover {
    color: var(--teal-light);
}

/* Tabla de Cookies */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cookies-table thead {
    background: var(--teal);
    color: white;
}

.cookies-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}

.cookies-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--gray);
    font-size: 0.9rem;
}

.cookies-table tbody tr:hover {
    background: var(--cream);
}

/* Responsive para páginas legales */
@media (max-width: 768px) {
    .legal-page {
        padding: 4rem 1.5rem;
    }
    
    .legal-container h1 {
        font-size: 2.2rem;
    }
    
    .legal-container h2 {
        font-size: 1.5rem;
    }
    
    .legal-container p {
        text-align: left;
    }
    
    .cookies-table {
        font-size: 0.85rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.7rem 0.5rem;
    }
}